Created
October 5, 2015 18:52
-
-
Save ejdyksen/f11f55bd0ffdf9d1cc8b 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
let notificationCenter = NSUserNotificationCenter.defaultUserNotificationCenter() | |
let notification = NSUserNotification() | |
notification.title = "Hello" | |
notification.informativeText = "This is a test" | |
notification.soundName = NSUserNotificationDefaultSoundName | |
notification.userInfo = ["key": "value"] | |
notificationCenter.deliverNotification(notification) | |
print("Done") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment