To run the example project, clone the repo, and run pod install
from the Example directory first.
LocationViewer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LocationViewer'
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)
[email protected], [email protected]
LocationViewer is available under the MIT license. See the LICENSE file for more info.