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 30b2942 commit 227ce4fCopy full SHA for 227ce4f
Sources/KeyboardLayoutGuide/KeyboardLayoutGuide.swift
@@ -127,7 +127,11 @@ open class KeyboardLayoutGuide: UILayoutGuide {
127
height -= bottomDifference
128
}
129
130
-
+ guard height != .infinity else {
131
+ // When the app is running in multiple windows, it can happen that both windows are `foregroundActive`
132
+ // and the intersection frame's origin can become infinite as the owning view is in the other window and the app would crash.
133
+ return
134
+ }
135
heightConstraint?.constant = height
136
if duration > 0.0 {
137
animate(note)
0 commit comments