LocationViewer
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Screenshot
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.