Skip to content

Instantly share code, notes, and snippets.

@gallaugher
Last active June 8, 2018 23:48
Show Gist options
  • Save gallaugher/8d9b850d50f76bb69c53fdef493fe582 to your computer and use it in GitHub Desktop.
Save gallaugher/8d9b850d50f76bb69c53fdef493fe582 to your computer and use it in GitHub Desktop.
Spot.swift convenience initializers
init(name: String, address: String, coordinate: CLLocationCoordinate2D, averageRating: Double, numberOfReviews: Int, postingUserID: String, documentID: String) {
self.name = name
self.address = address
self.coordinate = coordinate
self.averageRating = averageRating
self.numberOfReviews = numberOfReviews
self.postingUserID = postingUserID
self.documentID = documentID
}
convenience override init() {
self.init(name: "", address: "", coordinate: CLLocationCoordinate2D(), averageRating: 0.0, numberOfReviews: 0, postingUserID: "", documentID: "")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment