how to use coordinates outside of didUpdateLocation function in swift : Im trying to use the coordinates outside of did update locations function but i can not get it to work i try to declare the coordinates as a degree outside of the function but that does not work how can i get some guidance on this.

    var currentUserLatitude:CLLocationDegrees?
    var currentUserLongitude:CLLocationDegrees?

     func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]){

        //location info about the user
        let location = locations.last
        let center = CLLocationCoordinate2D(latitude: (location?.coordinate.latitude)!, longitude: (location?.coordinate.longitude)!)
        let span = MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05)
        let region = MKCoordinateRegion(center: center, span:span)
        self.mapView.setRegion(region, animated: true)
    // i want to use these variables outside the function
        var currentUserLatitude = location!.coordinate.latitude
        var currentUserLongitude = location!.coordinate.longitude

        
        
        
        
    }