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

Use UIApplication instead of UIScreen.main on iOS 13.0 and later #2152

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

hyun99999
Copy link
Contributor

UIScree.main will be deprecated in a future version of iOS.
I used UIAplication to get display's scale.

developer doc > mian already deprecated. It causes serious errors in the near future.

So have to change another way. And UIApplication is the one way of getting display's scale. That is available from iOS 13.0. This is why control flow has iOS 13.0 condition.

@onevcat onevcat merged commit 4a851c4 into onevcat:master Oct 27, 2023
1 of 4 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