YAPlacePicker
Example
To run the example project, clone the repo, and run pod install
from the Example directory first. Also you need to provide APIKEY inside ViewController.
Requirements
You need to have APIKEY for Google Maps and Google Places. If you don't have it please check here: https://developers.google.com/maps/documentation/ios-sdk/get-api-key
How to use?
Add this to Info.plist
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is required to see places close to you</string>
Add this code where you want YAPlaceLicker to be opened
//baseVC - UIViewController from which you want to open YAPlacePicker
YAPlacePickerBuilder(baseVC: self, gmsApiKey: ".........", completion: { place in
print(place)
}).show()
Available customizations (Optional)
YAPlacePickerBuilder(baseVC: self, gmsApiKey: ".........", completion: { place in
print(place)
})
.searchPlaceholder("Please start typing")
.chooseButtonTitle("Choose")
.chooseButtonColor(UIColor.red)
.show()
Installation
YAPlacePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YAPlacePicker'
Author
Nikita Khudorozhkov, [email protected]
License
YAPlacePicker is available under the MIT license. See the LICENSE file for more info.
Contribute
Please feel free to contribute with improvements.