Fix refreshing status issue (#2)

Fixes #2
This commit is contained in:
Kenta Kubo 2020-09-27 20:36:51 +09:00
parent 4dc38583be
commit 7db10b52de

View file

@ -170,6 +170,13 @@ extension ContentView: View {
}
}
.onAppear(perform: self.updateStatus)
.onReceive(
NotificationCenter.default.publisher(
for: UIScene.willEnterForegroundNotification
)
) { _ in
self.updateStatus()
}
}
}
.alert(isPresented: self.$alertIsPresented) {