Skip to content

Allow graceful symbol degration to support iOS 15+ at runtime#729

Merged
DataTriny merged 3 commits into
AccessKit:mainfrom
molenick:ios-15-support
Jun 25, 2026
Merged

Allow graceful symbol degration to support iOS 15+ at runtime#729
DataTriny merged 3 commits into
AccessKit:mainfrom
molenick:ios-15-support

Conversation

@molenick

Copy link
Copy Markdown
Contributor

First off - congrats on the release of accesskit_ios! 🎉

I started the process of using accesskit_ios to expose accessibility metadata in my egui app and was getting an immediate runtime crash on iOS 15.8.8. I looked into it and found that a few iOS 17+ symbols were being unconditionally loaded. This work gates the loading of those symbols on iOS 17+ so that iOS 15+ apps can make use of most of accesskit_ios's features.

Testing/Verification
In my private repo I was able to pin accesskit_ios to a local copy of this PR and verify that app was able to build, run and receive accesskit metadata on a real iPhone SE 1st gen running iOS 15.8.8

molenick added 2 commits June 22, 2026 13:51
…upport

    Resolves UIAccessibilityPriorityHigh, UIAccessibilityPriorityLow, and
    UIAccessibilitySpeechAttributeAnnouncementPriority via dlsym so the adapter no
    longer aborts at launch on iOS 15/16. Announcements fall back to a plain,
    unprioritized notification when the symbols are absent.

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The market share of iOS <17 seem very small so I don't think I want to put much effort into that, but this is reasonable.

Looks good, just one comment.

Comment thread platforms/ios/src/util.rs

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Supporting iOS 15+ seem reasonable for now and we will try to stick to it for a while. This is useful information that should be communicated somewhere. I would welcome a pull request adding this where you would have expected to find this information instead of discovering it at runtime. I will do it myself later otherwise.

@DataTriny DataTriny merged commit 5a9013f into AccessKit:main Jun 25, 2026
21 checks passed
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.

2 participants