Also stop watcher on macOS
This commit is contained in:
parent
f1fd18a04f
commit
b417141269
|
@ -171,9 +171,7 @@ struct IceCubesApp: App {
|
|||
private func handleScenePhase(scenePhase: ScenePhase) {
|
||||
switch scenePhase {
|
||||
case .background:
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
watcher.stopWatching()
|
||||
}
|
||||
watcher.stopWatching()
|
||||
case .active:
|
||||
watcher.watch(streams: [.user, .direct])
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
|
|
Loading…
Reference in New Issue