Skip to content

Instantly share code, notes, and snippets.

@worthbak
Created February 8, 2018 14:04
Show Gist options
  • Select an option

  • Save worthbak/237e1ff5839d9c3a6d02f7bbeaf06f36 to your computer and use it in GitHub Desktop.

Select an option

Save worthbak/237e1ff5839d9c3a6d02f7bbeaf06f36 to your computer and use it in GitHub Desktop.
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