Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable accessibility on hidden compass button #1

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

ocarrascoe
Copy link
Owner

Checking the issue 3058, it might be solved by disabling the accessibility on the hideCompass function because if the compass is hidden there is no point in showing it for the accessibility.

Testing it fixes the problem, let me know if it's useful!

Also, you can check if on the other hand, the function showCompass, you can set the opposite

self.isAccessibilityElement = YES;
self.accessibilityElementsHidden = No;

but as they are the default values, maybe it is not needed, just mind a case of being forced to hide and show the compass button in the same instance. What do you think?

@ocarrascoe ocarrascoe merged commit 611193d into main Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant