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

feat(splash-screen): Make splash work in apps that use scenes #631

Merged
merged 4 commits into from
Dec 6, 2021

Conversation

RishatShamsutdinov
Copy link
Contributor

On iOS 13 there is scenes (UIScene). When you're using scenes, the window property of the UIApplicationDelegate is nil.

On iOS 13 there is scenes (`UIScene`). When you're using scenes, the `window` property of the `UIApplicationDelegate` is `nil`.
Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I've made some minor changes, one for making sure the window we get is the key window, and another to avoid the force unwrap of the window.

@jcesarmobile jcesarmobile changed the title Fix issue with scenes on iOS 13+ feat(splash-screen): Make splash work in apps that use scenes Dec 6, 2021
@jcesarmobile jcesarmobile merged commit cf0d214 into ionic-team:main Dec 6, 2021
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