Can somebody please help me convert the following Objective-C statement to Swift?
CLLocationDistance distance = [fromLocation distanceFromLocation:toLocation];
I know that it must be simple to do that. I am brand new to iOS programming and any help will be greatly appreciated.
Thank you! :-)
func distanceFromLocation(location: CLLocation!) -> CLLocationDistance
. In Xcode Command click onCLLocationDistance
to get to the documentation and then search fordistanceFromLocation
. – Woolgathering