Don't let the map view idle

This commit is contained in:
Garth Vander Houwen 2023-02-26 08:57:13 -08:00
parent 8bf98f1eab
commit a945577b89

View file

@ -112,6 +112,7 @@ struct NodeMap: View {
"????")
})
.onAppear(perform: {
UIApplication.shared.isIdleTimerDisabled = true
self.bleManager.context = context
self.bleManager.userSettings = userSettings
mapCenteringMode = CenteringMode(rawValue: meshMapCenteringMode) ?? CenteringMode.allAnnotations
@ -138,5 +139,6 @@ struct NodeMap: View {
mapType = .hybridFlyover
}
})
.onDisappear { UIApplication.shared.isIdleTimerDisabled = false }
}
}