Created
February 1, 2018 16:56
-
-
Save 3257/3855674d01528feaade4140839f2cacc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 6. Add some actions and add them in a category which is then added to the notificationCategories | |
let likeAction = UNNotificationAction(identifier: "like", title: "Like", options: []) | |
let saveAction = UNNotificationAction(identifier: "save", title: "Save", options: []) | |
let category = UNNotificationCategory(identifier: "unicorning", actions: [likeAction, saveAction], intentIdentifiers: [], options: []) | |
UNUserNotificationCenter.current().setNotificationCategories([category]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment