TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by TVG.
Notification UI with alert and banner style. User can reply a message inside notification.
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)