We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f59d79 commit 06694b5Copy full SHA for 06694b5
Sources/ToastWindow.swift
@@ -53,7 +53,8 @@ open class ToastWindow: UIWindow {
53
override open var rootViewController: UIViewController? {
54
get {
55
guard !self.isStatusBarOrientationChanging else { return nil }
56
- return UIApplication.shared.windows.first?.rootViewController
+ guard let firstWindow = UIApplication.shared.windows.first else { return nil }
57
+ return firstWindow is ToastWindow ? nil : firstWindow.rootViewController
58
}
59
set { /* Do nothing */ }
60
0 commit comments