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

EXC_BREAKPOINT #233

Closed
springlo opened this issue Dec 4, 2019 · 5 comments
Closed

EXC_BREAKPOINT #233

springlo opened this issue Dec 4, 2019 · 5 comments

Comments

@springlo
Copy link

springlo commented Dec 4, 2019

    static var applicationWindow: UIWindow {
        return (UIApplication.shared.delegate?.window?.flatMap { $0 })!
    }

in Xcode 11, UIApplication.shared.delegate?.window = nil

@springlo springlo closed this as completed Dec 4, 2019
@Rveci
Copy link

Rveci commented Feb 4, 2020

how to resolve ?

@alimirshad
Copy link

@Visaut What do you want to achieve?

@Rveci
Copy link

Rveci commented Feb 4, 2020

@alimirshad in Line : return (UIApplication.shared.delegate?.window?.flatMap { $0 })!
Error -> "Fatal error: Unexpectedly found nil while unwrapping an Optional value"

use Xcode 11 , How to resolve ?

@alimirshad
Copy link

@Visaut you need to get Window from UIView. or if you need it in app delegate you need to assign the window to appdelegate window property. you can't force unwrap it like you are doing

@Rveci
Copy link

Rveci commented Feb 19, 2020

Thank you @alimirshad

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

3 participants