现代上部通知视图 0.2.0

现代上部通知视图 0.2.0

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布上次发布2016年9月
SPM支持SPM

muukiimuukii 维护。



 
依赖项
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文件。