Created
August 13, 2017 22:36
-
-
Save eonist/903e46b811c5eeeef84da2015c567b1b 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
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