通知栏 0.0.3

NotificationBar 0.0.3

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2017年6月
SwiftSwift版本3.0
SPM支持SPM

TVG维护。



  • TVG

NotificationBar

具有提示和横幅样式的通知 UI。用户可以在通知内回复消息。

要求

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

文档

  1. 添加处理器

    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. 显示通知

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