TopBarProvider

public protocol TopBarProvider

Your custom UIViewController can optionally conform to this protocol if you wish to customize the top bar of your controller.

TopBarProvider

  • The preferred top bar view for the view controller.

    Specifies a UIView that will be your top bar for the view controller. If you return nil from this method, the parent controllers top bar will be used.

    If you change the return value from this method, call the setNeedsTopBarAppearanceUpdate() method.

    Default value: nil

    Declaration

    Swift

    var preferredTopBarView: UIView? { get }
  • Indicates to the SDK that the view controller top bar attributes have changed.

    Call this method if the view controller’s top bar attributes, such as its view, change.

    You do not need to implement this method, only call it.

    Declaration

    Swift

    func setNeedsTopBarAppearanceUpdate()