I keep receiving this error:
Value of type 'MKDirections.Response?' has no member 'route'
Here is my code:
Task {
let directions = MKDirections(request: request)
let response = try? await directions.calculate()
route = response.route.first
}
any pointers on how to fix?
Thanks!