Notification UI with alert and banner style. User can reply a message inside notification.
- iOS 8.0+ / Mac OS X 10.10+ / watchOS 2.0+ / tvOS 9.0+
- Swift 3
- Xcode 8.0+
-
Add a handler:
NotificationBar.shared.selectHandler = { [weak self] _ in guard let sSelf = self else { return } } NotificationBar.shared.sendHandler = { [weak self] (text) in guard let sSelf = self else { return } print(text) }
-
Show notification:
NotificationBar.share.showNotification(title: "Notification", message: "Message", style: .banner) NotificationBar.share.showNotification(title: "Notification", message: "Message", style: .alert)