Latest 2.2.0
Homepage https://github.com/koogawa/LocationPickerController
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, CoreLocation, MapKit
Authors

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

Usage

  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)

Installation

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

pod "LocationPickerController"

Requirements

Swift 4.0 / iOS 8.0+

Creator

Kosuke Ogawa

License

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

Latest podspec

{
    "name": "LocationPickerController",
    "version": "2.2.0",
    "summary": "Simple location picker with a built in maps.",
    "description": "Simple location picker with a built in maps. The selected item can be returned to the calling controller as a CLLocationCoordinate2D.",
    "homepage": "https://github.com/koogawa/LocationPickerController",
    "screenshots": "https://raw.githubusercontent.com/koogawa/LocationPickerController/master/demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kosuke Ogawa": "[email protected]"
    },
    "social_media_url": "https://twitter.com/koogawa",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/koogawa/LocationPickerController.git",
        "tag": "2.2.0"
    },
    "source_files": "LocationPickerController/*.swift",
    "exclude_files": "Classes/Exclude",
    "frameworks": [
        "UIKit",
        "CoreLocation",
        "MapKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This