Skip to content

Instantly share code, notes, and snippets.

@malcommac
Last active February 6, 2017 13:09
Show Gist options
  • Save malcommac/5e5ade3aebca0ffe02e1c3dd305abe18 to your computer and use it in GitHub Desktop.
Save malcommac/5e5ade3aebca0ffe02e1c3dd305abe18 to your computer and use it in GitHub Desktop.
SwiftLocation to get current user location
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