Skip to content

Commit

Permalink
Remove iOS 10 check in accessibilityTrait handling since only iOS 10 …
Browse files Browse the repository at this point in the history
…+ is supported now

PiperOrigin-RevId: 351847371
  • Loading branch information
afweiss authored and material-automation committed Jan 14, 2021
1 parent 4195a48 commit 738a505
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/Tabs/src/TabBarView/MDCTabBarView.m
Expand Up @@ -561,10 +561,7 @@ - (BOOL)isAccessibilityElement {
}

- (UIAccessibilityTraits)accessibilityTraits {
if (@available(iOS 10.0, *)) {
return [super accessibilityTraits] | UIAccessibilityTraitTabBar;
}
return [super accessibilityTraits];
return [super accessibilityTraits] | UIAccessibilityTraitTabBar;
}

#pragma mark - Custom APIs
Expand Down

0 comments on commit 738a505

Please sign in to comment.