LocationViewer 0.1.6

LocationViewer 0.1.6

Maintained by Robyarta.




  • By
  • Robyarta@iCloud and Robyarta@Gmail

LocationViewer

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Screenshot

alt text

Installation

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

pod 'LocationViewer'

How To Use

import LocationViewer
let location = CLLocation(latitude: -6.2303447, longitude: 106.8240961)
let locationController = LocationViewerController(location: location, forName: "My Location")
locationController.titleColor = UIColor.red
locationController.subtitleColor = UIColor.green
locationController.leftCallOutAction = { print("left callout") }
locationController.shareAction = { location in print(location) }
locationController.backButton = UIBarButtonItem(title: "Back", style: .plain, target: self, action: #selector(back(_:)))
navigationController?.pushViewController(locationController, animated: true)

Author

[email protected], [email protected]

License

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