diff options
| author | ivar <i@oiee.no> | 2026-05-06 21:21:17 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2026-05-06 21:21:17 +0200 |
| commit | 54dd55db8c19667939536e18535ac9c45817e442 (patch) | |
| tree | 7ccb609b16e731c6281aa8d23969fb51c42eb60f /Solverv/SolvervApp.swift | |
| parent | efae4d08083f454975f08a2c0c6871c6a3d41e95 (diff) | |
| download | solverv-54dd55db8c19667939536e18535ac9c45817e442.tar.xz solverv-54dd55db8c19667939536e18535ac9c45817e442.zip | |
refactor: remove duplicate source files now served from Shared/
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 |
