Hi,
Im tying to use a variable outside of a function, I've searched many different solitons and none seem to work 😟
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let location = locations[0]
/
let Speed = location.speed * 2.236936284
SpeedLabel.text = "\(Speed)"
}
I wish to use the variable "Speed" elsewhere in my program.. How can this be done?
Any help is appreciated
Thanks
Oliver