Skip to content

Instantly share code, notes, and snippets.

@ejdyksen
Created October 5, 2015 18:52
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 ejdyksen/f11f55bd0ffdf9d1cc8b to your computer and use it in GitHub Desktop.
Save ejdyksen/f11f55bd0ffdf9d1cc8b to your computer and use it in GitHub Desktop.
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