Skip to content

Use UIApplication and view.windowScene.screen instead of UIScreen.main on iOS 13.0 and later#93

Open
hyun99999 wants to merge 2 commits intoHHK1:masterfrom
hyun99999:master
Open

Use UIApplication and view.windowScene.screen instead of UIScreen.main on iOS 13.0 and later#93
hyun99999 wants to merge 2 commits intoHHK1:masterfrom
hyun99999:master

Conversation

@hyun99999
Copy link
Copy Markdown

@hyun99999 hyun99999 commented Oct 18, 2023

UIScree.main will be deprecated in a future version of iOS.
I used Use UIApplication and view.windowScene.screen 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 and view.windowScene.screen is the others way of getting display's scale. That is available from iOS 13.0. This is why control flow has iOS 13.0 condition.

@hyun99999 hyun99999 changed the title Use UIApplication instead of UIScreen.main on iOS 13.0 and later Use UIApplication and view.windowScene.screen instead of UIScreen.main on iOS 13.0 and later Oct 18, 2023
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