Skip to content

Commit 37de3d5

Browse files
committed
Documentation
1 parent 686cfee commit 37de3d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
## Usage
1313

14+
This version uses Swift 3 and Cocoapods 0.1.0+. The final Swift 2 version is 0.2.5.
15+
1416
To run the example project, clone the repo, and run `pod install` from the Example directory first.
1517

1618
In addition to turning on the 'Maps' capability, you'll need to add `location-services` to `UIRequiredDeviceCapabilities`and fill in `NSLocationAlwaysUsageDescription` in your Info.plist.
@@ -24,9 +26,9 @@ mapViewController.delegate = self
2426
mapViewController.selectedMapItem = self.selectedMapItem // Optional.
2527
// ...
2628

27-
func mapViewController(mapViewController: MapViewController, didSelectMapItem mapItem: MKMapItem) {
29+
func mapViewController(_ mapViewController: MapViewController, didSelectMapItem mapItem: MKMapItem) {
2830
self.selectedMapItem = mapItem // Save, submit, etc.
29-
mapViewController.dismissViewControllerAnimated(true, completion: nil)
31+
mapViewController.dismissViewController(animated: true, completion: nil)
3032
}
3133
```
3234

0 commit comments

Comments
 (0)