HHK1 / PryntTrimmerView

A set of tools to trim, crop and select frames inside a video
MIT License
835 stars 199 forks source link

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

Open hyun99999 opened 11 months ago

hyun99999 commented 11 months ago

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.