SimpleNotificationBar 0.1.0

SimpleNotificationBar 0.1.0

Alex Reilly 维护。



RedboothNotificationBar

CI Status Version License Platform

alt text

用法

用法很简单,正如其名所示。只需让您的 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'