Apply Fiori Design Language styling attributes to
public static func applyFioriStyle()
Extends the background color of the navigation bar to the top of iPhone X screen.
This is needed for iPhone X type devices with iOS 12 only. When a view is presented with navigation bar but without status bar on devices other than iPhone X type of devices, the status bar is still showing on iPhone X devices at the top of the navigation bar. Invoking this function will add a view with the same background color on top of the navigation bar to cover the background of the status bar. Or if the view already added, it’s color will be set to match the background color of the navigation bar.
This has no visual effect on other types of iOS devices, since the added view is outside of the displaying area.
public func extendBackgroundColorToTop()
Remove the extended background color view.
An extended background color view was added when invoking
extendBackgroundColorToTop. Invoke this function to remove that view. There is no effect if
extendBackgroundColorToTopwas never invoked for this
public func removeExtendeBackgroundColorView()