We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UIScreen.main
I can see in the source code that this package is using UIScreen.main a lot. However, this was deprecated in iOS 16.
https://developer.apple.com/documentation/uikit/uiscreen/1617815-main
The text was updated successfully, but these errors were encountered:
I wonder how realistic it it would be to replace it with the recommended way of accessing a scene instance to get the screen:
let screen = UIApplication.shared.connectedScenes.first( where: { $0 is UIWindowScene } ) as? UIWindowScene
Because it's optional, I don't know of a clean replacement that is guaranteed to always return some screen object like what UIScreen.main does.
Sorry, something went wrong.
No branches or pull requests
I can see in the source code that this package is using
UIScreen.main
a lot. However, this was deprecated in iOS 16.https://developer.apple.com/documentation/uikit/uiscreen/1617815-main
The text was updated successfully, but these errors were encountered: