I am new to swift and I am trying to use variables in the CLLocation. When I include the variables it says I need a double. How could I go about this? My code:
//File 1
static var long: String = UserDefaults.standard.string(forKey: "long_key") ?? ""
static var lat: String = UserDefaults.standard.string(forKey: "lat_key") ?? ""
//File 2
let longitude = File1.long
let latitude = File2.lat
let location = CLLocation(latitude: longitude, longitude: latitude)