FUINavigationBar

open class FUINavigationBar: UINavigationBar

FUINavigationBar is a subclass of ‘UINavigationBar’ which applies the Fiori Design Language styling by default.

It exposes a bannerView: FUIBannerMessageView view property, which may be presented, using the FUIBannerMessageView show() method. By default, the message is shown centered on screen for two seconds.

Usage

Configuration

Setup a FUINavigationBar in your navigation controller. You can set either in storyboard or programmatically.

Presenting FUIBannerMessageView

guard let navBar = self.navigationController?.navigationBar as? FUINavigationBar else {
   return
}

navBar.bannerView?.show(message: This is a test banner, withDuration: 1, animated: true)