answer action

Can’t find an answer?

Make use of a qualified tutor to get the answer

Samuli
0
Q:

Swift : swift notifications mac

Features

Swift
func showNotification() -> Void {
    var notification = NSUserNotification()
    notification.title = "Test from Swift"
    notification.informativeText = "The body of this Swift notification"
    notification.soundName = NSUserNotificationDefaultSoundName
    NSUserNotificationCenter.default.deliver(notification)
}

self.showNotification()
3
Your Answer

Tags

New to Communities?

Join the community