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

Check iOS 13 is available at runtime #21

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

dcaunt
Copy link
Contributor

@dcaunt dcaunt commented Nov 4, 2024

Fixes a crash on iOS 12 when the adapters are called at runtime.

Check and cache operating system version, using this to no-op adapter calls on operating systems prior to iOS 13. #available checks do work for this, but produce a warning because the compiler knows the enclosing scope is already annotated with @available. Using ProcessInfo avoids these warnings.

@dcaunt dcaunt marked this pull request as ready for review November 5, 2024 10:50
@dcaunt dcaunt merged commit a293877 into main Nov 5, 2024
3 checks passed
@dcaunt dcaunt deleted the dave/ios-13-runtime-check branch November 5, 2024 11:10
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.

3 participants