Last active
February 28, 2016 23:21
-
-
Save robertmryan/c526b6a4e477428f2a15 to your computer and use it in GitHub Desktop.
Lazily instantiate location manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy var locationManager: CLLocationManager = { | |
let manager = CLLocationManager() | |
manager.requestWhenInUseAuthorization() | |
return manager | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment