Skip to content

Instantly share code, notes, and snippets.

@jgsamudio
Created May 13, 2019 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgsamudio/797ecbb1cffc8bb0bf7e81c03493c622 to your computer and use it in GitHub Desktop.
Save jgsamudio/797ecbb1cffc8bb0bf7e81c03493c622 to your computer and use it in GitHub Desktop.
LocationNotificationInfo object for the LocationNotificationScheduler
import CoreLocation
struct LocationNotificationInfo {
// Identifiers
let notificationId: String
let locationId: String
// Location
let radius: Double
let latitude: Double
let longitude: Double
// Notification
let title: String
let body: String
let data: [String: Any]?
/// CLLocation Coordinates
var coordinates: CLLocationCoordinate2D {
return CLLocationCoordinate2D(latitude: latitude,
longitude: longitude)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment