Skip to content

gentique/GBLocationManager-Singleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

GBLocationManager

GBLocationManager is a handy singleton class for CLLLocationManager.

Installation

Copy paste the .swift class into your project.

Usage

let locationManager = GBLocationManager.shared

Protocol

protocol GBLocationManagerDelegate {
    func didUpdateLocation(location: CLLocation)
    func didFailWith(error: Error)
    func authorizationStatusChanged(status: CLAuthorizationStatus)
}

Convenience methods

func locationServices(shouldUpdate: Bool)
func requestLocationUpdate { (success, location) in }
func checkAuthorization()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Releases

No releases published

Packages

No packages published

Languages