Last active
August 2, 2019 10:33
-
-
Save fitsyu/fa6435b34cbb00a14f027fe65d112191 to your computer and use it in GitHub Desktop.
Growing list of wrapped CLGeocoder with PromisesSwift
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
extension CLGeocoder { | |
func reverseGeocode(_ location: CLLocation) -> Promise<([CLPlacemark]?,Error?)> { | |
return wrap { self.reverseGeocodeLocation(location, completionHandler: $0) } | |
} | |
// add some more here later | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment