MDCNavigationBarTitleViewLayoutBehavior

enum MDCNavigationBarTitleViewLayoutBehavior {}

Behaviors that affect the layout of an |MDCNavigationBar|‘s titleView.

  • The title view’s width will equal the navigation bar’s width minus any space consumed by the leading and trailing buttons.

    The title view’s center may not align with the navigation bar’s center in this case.

    Declaration

    Objective-C

    MDCNavigationBarTitleViewLayoutBehaviorFill
  • Align the title view’s center with the navigation bar’s center, if possible.

    Declaration

    Objective-C

    MDCNavigationBarTitleViewLayoutBehaviorCenter