You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when I try to call a ActionSheetDialog on my app, the app crashes.
As I don't know what causes the crash (sometimes it happens, sometimes it doesn't) I can't reproduce it with precision. But the part of the code that is crashing the app is in the Toaster Library, on this part:
override open var rootViewController: UIViewController? {
get {
guard !self.isStatusBarOrientationChanging else { return nil }
guard let firstWindow = UIApplication.shared.windows.first else { return nil }
return firstWindow is ToastWindow ? nil : firstWindow.rootViewController
}
set { /* Do nothing */ }
}
More specifically, it's on this line
guard let firstWindow = UIApplication.shared.windows.first else { return nil }
Do you guys have any idea of what could be causing this? Sorry for being so vague but I really have no idea of how to reproduce it and gather more info.
The text was updated successfully, but these errors were encountered:
victorlsn
changed the title
Random crash when calling
Random crash when calling ActionSheetDialog
May 12, 2017
Sometimes when I try to call a ActionSheetDialog on my app, the app crashes.
As I don't know what causes the crash (sometimes it happens, sometimes it doesn't) I can't reproduce it with precision. But the part of the code that is crashing the app is in the Toaster Library, on this part:
override open var rootViewController: UIViewController? {
get {
guard !self.isStatusBarOrientationChanging else { return nil }
guard let firstWindow = UIApplication.shared.windows.first else { return nil }
return firstWindow is ToastWindow ? nil : firstWindow.rootViewController
}
set { /* Do nothing */ }
}
More specifically, it's on this line
guard let firstWindow = UIApplication.shared.windows.first else { return nil }
Do you guys have any idea of what could be causing this? Sorry for being so vague but I really have no idea of how to reproduce it and gather more info.
The text was updated successfully, but these errors were encountered: