MDCBottomAppBarView

@interface MDCBottomAppBarView : UIView

A bottom app bar view with an embedded floating button.

The bottom app bar is a bar docked at the bottom of the screen. A floating action button is provided for a primary action.

  • Is the floating button on the bottom bar hidden. Default is NO.

    Declaration

    Objective-C

    @property (getter=isFloatingButtonHidden, assign, readwrite, nonatomic)
        BOOL floatingButtonHidden;
  • The elevation of the floating action button. Default is MDCBottomAppBarFloatingButtonElevationPrimary.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        MDCBottomAppBarFloatingButtonElevation floatingButtonElevation;
  • The position of the floating action button. Default is MDCBottomAppBarFloatingButtonPositionCenter.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        MDCBottomAppBarFloatingButtonPosition floatingButtonPosition;
  • The floating button on the bottom bar. This button is exposed for customizability.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull)
        MDCFloatingButton *floatingButton;
  • The offset from the center of the floating button to the top edge of the navigation bar

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat floatingButtonVerticalOffset;
  • Navigation bar items that precede the floating action button. There is no limit to the number of buttons that can be added, but button bar width overflow is not handled.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *leadingBarButtonItems;
  • Navigation bar items that trail the floating action button. There is no limit to the number of buttons that can be added, but button bar width overflow is not handled.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *trailingBarButtonItems;
  • Color of the background of the bottom app bar.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIColor *barTintColor;
  • The @c tintColor applied to the bar items on the leading side of the BottomAppBar.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull)
        UIColor *leadingBarItemsTintColor;
  • The @c tintColor applied to the bar items on the trailing side of the BottomAppBar.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull)
        UIColor *trailingBarItemsTintColor;
  • To color the background of the view use -barTintColor instead.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) UIColor *backgroundColor;
  • The color of the shadow under the bottom app bar.

    To set the shadow color of the Floating Action Button, set it directly on the button.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIColor *shadowColor;
  • Sets the visibility of the floating action button.

    Declaration

    Objective-C

    - (void)setFloatingButtonHidden:(BOOL)floatingButtonHidden
                           animated:(BOOL)animated;

    Parameters

    animated

    Enable or disable animation.

  • Sets the elevation of the floating action button. Note, if the set elevation is the same as the current elevation there is no change in the elevation nor animation.

    Declaration

    Objective-C

    - (void)setFloatingButtonElevation:
                (MDCBottomAppBarFloatingButtonElevation)floatingButtonElevation
                              animated:(BOOL)animated;

    Parameters

    animated

    Enable or disable animation.

  • Sets the position of the floating action button. Note, if the set position is the same as the current position there is no change in the position nor animation.

    Declaration

    Objective-C

    - (void)setFloatingButtonPosition:
                (MDCBottomAppBarFloatingButtonPosition)floatingButtonPosition
                             animated:(BOOL)animated;

    Parameters

    animated

    Enable or disable animation.