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