Skip to content

Instantly share code, notes, and snippets.

@eonist
Created August 13, 2017 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eonist/903e46b811c5eeeef84da2015c567b1b to your computer and use it in GitHub Desktop.
Save eonist/903e46b811c5eeeef84da2015c567b1b to your computer and use it in GitHub Desktop.
NSUserNotificationCenter.default.delegate = self//add this in the applicationDidFinishLaunching call
extension AppDelegate:NSUserNotificationCenterDelegate{
func userNotificationCenter(_ center: NSUserNotificationCenter, shouldPresent notification: NSUserNotification) -> Bool {
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment