diff options
Diffstat (limited to 'Solverv/SolvervApp.swift')
| -rw-r--r-- | Solverv/SolvervApp.swift | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Solverv/SolvervApp.swift b/Solverv/SolvervApp.swift index a2beb1d..955a946 100644 --- a/Solverv/SolvervApp.swift +++ b/Solverv/SolvervApp.swift @@ -52,15 +52,6 @@ class LocationManager: NSObject, CLLocationManagerDelegate, ObservableObject { manager.requestWhenInUseAuthorization() } else if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways { fetchLocation() - } else { - // Use default location (Greenwich) - let defaultLocation = AppGroupManager.UserLocation( - latitude: 0.0, - longitude: 0.0, - timestamp: ISO8601DateFormatter().string(from: Date()), - isDefaultLocation: true - ) - AppGroupManager.shared.saveLocation(defaultLocation) } } @@ -83,6 +74,7 @@ class LocationManager: NSObject, CLLocationManagerDelegate, ObservableObject { timestamp: ISO8601DateFormatter().string(from: Date()), isDefaultLocation: false ) + AppGroupManager.shared.saveLocation(userLocation) // Calculate and cache sunrise/sunset |
