Skip to content

Instantly share code, notes, and snippets.

View zachbrown-bm's full-sized avatar

Zachary Brown zachbrown-bm

  • Black Maple Software
  • Edmonton, AB
View GitHub Profile
@zachbrown-bm
zachbrown-bm / notification.swift
Last active March 25, 2017 17:31 — forked from ericdke/notification.swift
Deliver an OSX notification with Swift
func showNotification() -> Void {
let notification = NSUserNotification()
notification.title = "Test from Swift"
notification.informativeText = "The body of this Swift notification"
notification.soundName = NSUserNotificationDefaultSoundName
NSUserNotificationCenter.default.deliver(notification)
}
//showNotification()