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

Support the private "back button" trait that UINavigationBar uses for back buttons #216

Open
kyleve opened this issue May 2, 2024 · 0 comments

Comments

@kyleve
Copy link
Collaborator

kyleve commented May 2, 2024

UIAccessibilityTraits contains a private trait that is used for back buttons in UINavigationController, on _UIButtonBarButton in particular:

(lldb) po button
▿ Optional<UIControl>
  - some : <_UIButtonBarButton: 0x1026336d0 ... >

(lldb) p button?.accessibilityTraits
(UIAccessibilityTraits?) 134217728

(lldb) po String(134217728, radix: 2)
"1000000000000000000000000000"

This allows VoiceOver to speak "back button" for the control kind, instead of just the regular "button".

I'm already working through a contribution to support this, so filing an issue!

#217

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

No branches or pull requests

1 participant