FUINavigationBar
@IBDesignable
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 under the navigation bar.
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)
-
The banner view sits underneath
FUINavigationBar
. Callshow()
to enable it.Declaration
Swift
open var bannerView: FUIBannerMessageView? { get set }