TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Michal Ziman.
Simple to use location picker. As for users, so for developers.
Default | History | Search | Customized |
---|---|---|---|
To run the example project, clone the repo, and run pod install
from the Example directory first.
MZLocationPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "MZLocationPicker"
For simple usage just implement MZLocationPickerDelegate methods and present picker like this:
let picker = MZLocationPickerController()
picker.delegate = self
present(picker, animated: true, completion: nil)
However, you can also customize the picker a bit more:
let picker = MZLocationPickerController()
picker.delegate = self
picker.tintColor = .purple
picker.annotation.image = #imageLiteral(resourceName: "custom_pin")
picker.annotation.centerOffset = CGPoint(x: 0, y: 24)
picker.mapType = .satellite
picker.translator = self
present(picker, animated: true, completion: nil)
Michal Ziman, [email protected]
MZLocationPicker is available under the MIT license. See the LICENSE file for more info.