Check if location services are enabled
<p>I've been doing some research about CoreLocation. Recently, I encountered a problem that has been covered elsewhere, but in Objective C, and for iOS 8.</p>

<p>I feel kinda silly asking this, but how can you check if location services are enabled using swift, on iOS 9?</p>

<p>On iOS 7 (and maybe 8?) you could use <code>locationServicesEnabled()</code>, but that doesn't appear to be working when compiling for iOS 9.</p>

<p>So how would I accomplish this?</p>

<p>Thanks!</p>