测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可证 | MIT |
发布上次发布 | 2016年9月 |
SPM支持SPM | ✗ |
依赖项 | |
UpperNotificationController | ~> 0.1.0 |
EasyPeasy | >= 0 |
GCDKit | >= 0 |
现代上部通知视图是一个简单的通知视图,由UpperNotificationController支持。
let notificationController = UpperNotificationController()
notificationController.windowLevel = UIWindowLevelStatusBar
let notification = NotificationContext<ModernUpperNotificationView> {
let view = ModernUpperNotificationView(
text: "Failure...",
iconImage: UIImage(named: "OvalRed")!,
tap: {
print("tap: failure")
})
return view
}
notificationController.deliver(notification: notification)
iOS 8.0以上
现代上部通知视图可以通过CocoaPods安装。要安装它,只需将以下行添加到Podfile中:
pod "ModernUpperNotificationView"
muukii, [email protected]
现代上部通知视图遵循MIT许可证。有关更多信息,请参阅LICENSE文件。