Simple location picker with a built in maps.
Clone or download
Latest commit 904c21a Oct 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Update podspec Oct 4, 2018
LocationPickerController Support Swift 4.2 Oct 4, 2018
.gitignore Initial commit Apr 30, 2016
.swift-version Update podspec Oct 15, 2016
LICENSE Initial commit Apr 30, 2016
LocationPickerController.podspec Update podspec Oct 4, 2018 Update Dec 23, 2017
demo.gif Update May 1, 2016


Simple location picker with a built in maps. The selected item can be returned to the calling controller as a CLLocationCoordinate2D.


  1. Link CoreLocation.framework and MapKit.framework to your project
  2. Fill in NSLocationWhenInUseUsageDescription in your Info.plist
  3. Import CoreLocation and LocationPickerController
  4. Initialize the LocationPickerController
  5. Push the controller
import CoreLocation
import LocationPickerController
let viewController = LocationPickerController(success: {
    [weak self] (coordinate: CLLocationCoordinate2D) -> Void in
    self?.locationLabel.text = "".appendingFormat("%.4f, %.4f",
        coordinate.latitude, coordinate.longitude)
let navigationController = UINavigationController(rootViewController: viewController)
self.present(navigationController, animated: true, completion: nil)


LocationPickerController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LocationPickerController"


Swift 4.0 / iOS 8.0+


Kosuke Ogawa


LocationPickerController is available under the MIT license. See the LICENSE file for more info.