-
-
Save GxocT/b3ffac798b657093167086ef5b651314 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension AppDelegate: UNUserNotificationCenterDelegate { | |
func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) { | |
openSettings() | |
} | |
func openSettings() { | |
let storyboard = UIStoryboard(name: "Settings", bundle: nil) | |
let settings = storyboard.instantiateViewController(withIdentifier: "Settings") | |
window?.rootViewController = settings | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment