From f4af19053ef28d3dda705e425cab04cd8ac7ec8e Mon Sep 17 00:00:00 2001 From: Omar Carrasco Escudero Date: Wed, 4 Dec 2024 19:18:09 +0100 Subject: [PATCH] fix: disable accessibility on hide --- platform/ios/src/MLNCompassButton.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/ios/src/MLNCompassButton.mm b/platform/ios/src/MLNCompassButton.mm index 3e0597c3c33..009f37ee05a 100644 --- a/platform/ios/src/MLNCompassButton.mm +++ b/platform/ios/src/MLNCompassButton.mm @@ -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 {