Skip to content

Commit

Permalink
fix: Disable accessibility on hidden compass button (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocarrascoe authored Dec 4, 2024
1 parent 5c8dd71 commit 61d385b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/ios/src/MLNCompassButton.mm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ - (void)showCompass:(BOOL)animated {

- (void)hideCompass:(BOOL)animated {
animated ? [self animateToAlpha:0] : [self setAlpha:0];
self.isAccessibilityElement = NO;
self.accessibilityElementsHidden = YES;
}

- (void)animateToAlpha:(CGFloat)alpha {
Expand Down

0 comments on commit 61d385b

Please sign in to comment.