GBLocationManager is a handy singleton class for CLLLocationManager.
Copy paste the .swift class into your project.
let locationManager = GBLocationManager.shared
protocol GBLocationManagerDelegate {
func didUpdateLocation(location: CLLocation)
func didFailWith(error: Error)
func authorizationStatusChanged(status: CLAuthorizationStatus)
}
func locationServices(shouldUpdate: Bool)
func requestLocationUpdate { (success, location) in }
func checkAuthorization()
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.