diff --git a/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift b/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift index 3a599873..9f610585 100644 --- a/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift +++ b/Tusker/Screens/Preferences/Notifications/NotificationsPrefsView.swift @@ -24,6 +24,24 @@ struct NotificationsPrefsView: View { } } .appGroupedListRowBackground() + + if #available(iOS 15.4, *) { + Section { + Button { + let str = if #available(iOS 16.0, *) { + UIApplication.openNotificationSettingsURLString + } else { + UIApplicationOpenNotificationSettingsURLString + } + if let url = URL(string: str) { + UIApplication.shared.open(url) + } + } label: { + Text("Open Notification Settingsā€¦") + } + } + .appGroupedListRowBackground() + } } .listStyle(.insetGrouped) .appGroupedListBackground(container: PreferencesNavigationController.self)