Skip to content

Instantly share code, notes, and snippets.

@abargh
Last active September 11, 2018 08:01
Show Gist options
  • Save abargh/3e50ccef874c58a29353ade2cf95a7e2 to your computer and use it in GitHub Desktop.
Save abargh/3e50ccef874c58a29353ade2cf95a7e2 to your computer and use it in GitHub Desktop.
Extension adding Equatable conformance to CLLocationCoordiate2D
import CoreLocation
extension CLLocationCoordinate2D: Equatable {
public static func ==(lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment