Skip to content

Commit 53cd5c1

Browse files
committed
- fixed an issue when the heightConstraint receives an infinite value
1 parent 30b2942 commit 53cd5c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/KeyboardLayoutGuide/KeyboardLayoutGuide.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ open class KeyboardLayoutGuide: UILayoutGuide {
127127
height -= bottomDifference
128128
}
129129

130-
130+
guard height != .infinity else {
131+
return
132+
}
131133
heightConstraint?.constant = height
132134
if duration > 0.0 {
133135
animate(note)

0 commit comments

Comments
 (0)