Skip to content

Instantly share code, notes, and snippets.

@TheDarkCode
Created February 21, 2016 14:36
Show Gist options
  • Save TheDarkCode/86e23bfb9c9acce60a01 to your computer and use it in GitHub Desktop.
Save TheDarkCode/86e23bfb9c9acce60a01 to your computer and use it in GitHub Desktop.
Sample class for adding annotations to MKMapView.
//
// SampleAnnotation.swift
// Sample class for adding annotations to MKMapView.
//
// Created by Mark Hamilton on 2/21/16.
// Copyright © 2016 dryverless. All rights reserved.
//
import Foundation
import MapKit
class SampleAnnotation: NSObject, MKAnnotation {
var coordinate = CLLocationCoordinate2D()
init(coordinate: CLLocationCoordinate2D) {
self.coordinate = coordinate
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment