CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

YAPlacePicker 0.4.9

YAPlacePicker 0.4.9

Maintained by Nikita Khudorozhkov.



 
Depends on:
GoogleMaps>= 0
GooglePlaces>= 0
RxSwift= 5
RxCocoa= 5
 

  • By
  • Nikita Khudorozhkov

YAPlacePicker

CI Status Version License Platform

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.