Skip to content

Commit 6a06e33

Browse files
committed
removed unused location monitoring in the scene level
1 parent aec0029 commit 6a06e33

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

GoInfoGame/GoInfoGame/SceneDelegate.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import SwiftUI
1111
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1212

1313
var window: UIWindow?
14-
15-
var locationManagerDelegate = LocationManagerDelegate()
16-
14+
1715
@AppStorage("loggedIn") private var loggedIn: Bool = false
1816

1917

@@ -66,14 +64,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
6664
func sceneWillEnterForeground(_ scene: UIScene) {
6765
// Called as the scene transitions from the background to the foreground.
6866
// Use this method to undo the changes made on entering the background.
69-
locationManagerDelegate.startUpdatingLocation()
7067
}
7168

7269
func sceneDidEnterBackground(_ scene: UIScene) {
7370
// Called as the scene transitions from the foreground to the background.
7471
// Use this method to save data, release shared resources, and store enough scene-specific state information
7572
// to restore the scene back to its current state.
76-
locationManagerDelegate.stopUpdatingLocation()
7773
}
7874

7975
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {

0 commit comments

Comments
 (0)