RedboothNotificationBar
用法
用法很简单,正如其名所示。只需让您的 UIViewController
遵守 NotificationBar
import SimpleNotificationBar
class ViewController: UIViewController, NotificationBar {
...
}
然后使用它提供的方法
self.showSuccessBanner(withMessage: "You did it!")
self.showErrorBanner(withMessage: "Uh Oh!")
self.dismissBanner()
示例
要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
要求
安装
RedboothNotificationBar 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'RedboothNotificationBar'