TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2016 |
SPMSupports SPM | ✗ |
Maintained by rad182.
To run the example project, clone the repo, and run pod install
from the Example directory first.
RADInfoBannerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RADInfoBannerView"
Import module
import RADInfoBannerView
Showing simple info banner view with "Hello" text
RADInfoBannerView.showInfoBannerView("Hello")
With Activity Indicator and hide delay
RADInfoBannerView.showInfoBannerView("Loading more messages", showActivityIndicatorView: true, hideAfter: 5.0)
Customize info banner view
let infoBannerView = RADInfoBannerView(text: text, showActivityIndicatorView: self.activityIndicatorSwitch.on)
infoBannerView.backgroundColor = .redColor()
infoBannerView.textLabel.textColor = .yellowColor()
infoBannerView.show().hide(afterDelay: 3.0)
NOTE: If you're using UIViewController Containment you will need to specify which controller you want to show the info banner view
RADInfoBannerView.showInfoBannerView("Loading more messages", showActivityIndicatorView: true, inController: self)
Lastly, Hiding
RADInfoBannerView.hideAllInfoBannerView(inController: self, animated: true)
RADInfoBannerView is available under the MIT license. See the LICENSE file for more info.