mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Reset badge count when disabling badge
This commit is contained in:
parent
f80a57b652
commit
838bf86b95
1 changed files with 2 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ struct FiltersView: View {
|
|||
.onChange(of: viewModel.hasBadgePermission) { _ in
|
||||
if viewModel.hasBadgePermission {
|
||||
viewModel.requestBadgePermission()
|
||||
} else {
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue