NotificationBar 0.0.3

NotificationBar 0.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by TVG.



  • By
  • TVG

NotificationBar

Notification UI with alert and banner style. User can reply a message inside notification.

Requirements

  • iOS 8.0+ / Mac OS X 10.10+ / watchOS 2.0+ / tvOS 9.0+
  • Swift 3
    • Xcode 8.0+

Documentation

  1. 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)
    }
  2. Show notification:

     NotificationBar.share.showNotification(title: "Notification", message: "Message", style: .banner)
     NotificationBar.share.showNotification(title: "Notification", message: "Message", style: .alert)