Created
February 8, 2018 14:04
-
-
Save worthbak/237e1ff5839d9c3a6d02f7bbeaf06f36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| mapView.delegate = self | |
| for randCoordinate in makeRandomCoordinates(in: mapView.region) { | |
| let annotation = MapItem(coordinate: randCoordinate) | |
| mapView.addAnnotation(annotation) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment