MDCNavigationBarTextColorAccessibilityMutator

@interface MDCNavigationBarTextColorAccessibilityMutator : NSObject

The MDCNavigationBarTextColorAccessibilityMutator class creates an external object with which to work on an instance of a Material Navigation Bar to activate and ensure accessibility on its title and buttons.

Dependencies

Material NavigationBarTextColorAccessibilityMutator depends on the Navigation Bar material component and MDFTextAccessibility Framework.

  • Initializes and returns a newly created accessibility mutator

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Mutates title text color and navigation items’ tint colors based on background color of navigation bar.

    Declaration

    Objective-C

    - (void)mutate:(nonnull MDCNavigationBar *)navBar;