-
-
Save GxocT/31146723d8a366bc42d2c5908b47e569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let actions = [ | |
UNNotificationAction(identifier: "like-action", title: "Like", options: []), | |
UNNotificationAction(identifier: "open-app", title: "Open App", options: []), | |
UNNotificationAction(identifier: "dismiss", title: "Dismiss", options: []), | |
] | |
let simpleCategory = UNNotificationCategory(identifier: "category-simple", actions: actions, intentIdentifiers: [], options: []) | |
UNUserNotificationCenter.current().setNotificationCategories([simpleCategory]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment