Skip to content

redbooth/SimpleNotificationBar

Repository files navigation

RedboothNotificationBar

CircleCI Version License Platform

alt text

Usage

Usage is simple, as the name implies. Simply conform your UIViewController to NotificationBar

import SimpleNotificationBar

class ViewController: UIViewController, NotificationBar {
  ...
}

And use the methods that it provides

self.showSuccessBanner(withMessage: "You did it!")
self.showErrorBanner(withMessage: "Uh Oh!")

self.dismissBanner()

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

RedboothNotificationBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RedboothNotificationBar'