Last active
February 6, 2017 13:09
-
-
Save malcommac/5e5ade3aebca0ffe02e1c3dd305abe18 to your computer and use it in GitHub Desktop.
SwiftLocation to get current user location
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
LocationManager.shared.observeLocations(.Block, frequency: .OneShot, onSuccess: { location in | |
// Your desidered CLLocation is here, at specified accuracy with auth request managed for you | |
}) { error in | |
// Something went wrong. error will tell you what | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment