Create a notification within a sketch plugin
✓ Published0🌍 Public
KKevinGutowski
Last edited Jul 19, 2019
Created on Jul 19, 2019
This example shows how a Sketch plugin can display a native macOS notification to the user. The code creates a new `NSUserNotification`, assigns it a unique identifier, and sets its title, subtitle, and informative text. It then retrieves the default notification center and delivers the notification. The data is hard-coded strings, and the implementation relies on the Sketch plugin API’s `NSUserNotificationCenter` and `NSUserNotification` classes.
AI-generated description