ACNotify
public class ACNotify
ACNotify
provides a simple Toast-like popup notification that is displayed in the Mac’s notification center.
Example:
// Display popup notification
ACNotify.showMessage(text: "Hello World!")
-
Displays a simple Toast-like popup notification in the Mac’s notification center.
Example:
// Display popup notification in macOS ACNotify.showMessage(text: "Hello World!")
Declaration
Swift
public static func showMessage(text: String)
Parameters
text
The message to display in the popup.
-
Displays a simple Toast-like popup notification in the Mac’s notification center.
Example:
// Display popup notification with extra information ACNotify.showMessage(title: "NOTIFICATION", subtitle: "Sample Notification", text: "Hello World!")
Declaration
Swift
public static func showMessage(title: String, subtitle: String, text: String, icon: NSImage? = nil)
Parameters
title
The title of the notification.
subtitle
The subtitle of the notification.
text
The message to display in the popup.
icon
The optional icon image for the message.