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

Cant able to get Window object and due to empty Window Object pod is Crashed. #13

Open
afeefSohail opened this issue Sep 30, 2020 · 1 comment

Comments

@afeefSohail
Copy link

No description provided.

@afeefSohail
Copy link
Author

please tell me the solution i have ios 13 but you pod did not work here and crashes due to this Function did not return a Window see this code
fileprivate func getKeyWindow() -> UIWindow? {
let window = UIApplication.shared.connectedScenes
.filter({$0.activationState == .foregroundActive})
.map({$0 as? UIWindowScene})
.compactMap({$0})
.first?.windows
.filter({$0.isKeyWindow}).first

    return window
}

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

No branches or pull requests

1 participant