Skip to content

Commit

Permalink
[AppBar] Mark MDCAppBarTextColorAccessibilityMutator as deprecated. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Aug 17, 2018
1 parent bf099ab commit 8c394dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/AppBar/src/MDCAppBarViewController.h
Expand Up @@ -120,13 +120,14 @@
@note This API will be deprecated with no replacement.
*/

__deprecated_msg("Use themers and MDFTextAccessibility directly instead.")
@interface MDCAppBarTextColorAccessibilityMutator : NSObject

/**
Mutates title text color and navigation items' tint colors based on background color of
app bar's navigation bar or header view background color.
*/
- (void)mutate:(nonnull MDCAppBar *)appBar;
- (void)mutate:(nonnull MDCAppBar *)appBar
__deprecated_msg("Use themers and MDFTextAccessibility instead.");

@end
3 changes: 3 additions & 0 deletions components/AppBar/src/MDCAppBarViewController.m
Expand Up @@ -329,6 +329,8 @@ - (BOOL)inferTopSafeAreaInsetFromViewController {

@end

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation MDCAppBarTextColorAccessibilityMutator

- (void)mutate:(nonnull MDCAppBar *)appBar {
Expand Down Expand Up @@ -362,3 +364,4 @@ - (void)mutate:(nonnull MDCAppBar *)appBar {
}

@end
#pragma clang diagnostic pop

0 comments on commit 8c394dc

Please sign in to comment.