• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    Swift
  • Created over 9 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

NotificationExtensionTest

An example of how to use an undocumented extension point to provide custom UI in a notification banner on OS X (pretty sure it's new in 10.11)

App extensions with an extension point of "com.apple.notification-extension" can provide a view controller to display in a banner. Just add "__ncNotificationExtensionIdentifier" to the userInfo dictionary of the NSUserNotification, with the value being the bundle identifier of the app extension you want to show.

Video: https://twitter.com/hamzasood/status/616718933760937984