UINavigationBar

extension UINavigationBar
  • The enum for the version to be displayed in FUINoteFormCell or FUIKeyValueFormCell.

    See more

    Declaration

    Swift

    public enum FioriStyleVersion
  • Apply Fiori Design Language styling attributes to UINavigationBar.appearance()

    Declaration

    Swift

    public static func applyFioriStyle(_ v: FioriStyleVersion = .v2)

    Parameters

    v

    the version of FioriStyleVersion; the default version is .v2

  • 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.

    Declaration

    Swift

    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 extendBackgroundColorToTop was never invoked for this UINavigationBar.

    Declaration

    Swift

    public func removeExtendeBackgroundColorView()