Skip to content

Commit

Permalink
Quicker last location update
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Nov 30, 2023
1 parent 3140893 commit 16b7bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apple/Sources/FerrostarCore/Location.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class LiveLocationProvider: NSObject, ObservableObject {
case .notDetermined:
locationManager.requestWhenInUseAuthorization()
case .authorizedAlways, .authorizedWhenInUse:
lastLocation = locationManager.location
locationManager.requestLocation()
default:
break
Expand Down

0 comments on commit 16b7bd1

Please sign in to comment.