Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.37 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.37 KB

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'