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
Is there a reason why the whistleWindow is not removed after displaying? It's causing issues in my code whenever I call UIApplication.shared.windows.first, which returns the whistleWindow and not the expected keyWindow.
I forked the project and made whistleWindow an optional and I set it to nil when the display has finished.
public func hide() {
let finalOrigin = view.frame.origin.y - titleLabelHeight - Dimensions.notchHeight
UIView.animate(withDuration: 0.2, animations: {
self.whistleWindow?.frame.origin.y = finalOrigin
}, completion: { _ in
if let window = self.previousKeyWindow {
window.isHidden = false
self.whistleWindow = nil // Setting this to nil... Will this cause any problems?
self.previousKeyWindow = nil
window.rootViewController?.setNeedsStatusBarAppearanceUpdate()
}
})
}
Will this solution cause any problems?
The text was updated successfully, but these errors were encountered:
Is there a reason why the whistleWindow is not removed after displaying? It's causing issues in my code whenever I call UIApplication.shared.windows.first, which returns the whistleWindow and not the expected keyWindow.
I forked the project and made whistleWindow an optional and I set it to nil when the display has finished.
Will this solution cause any problems?
The text was updated successfully, but these errors were encountered: