Skip to content

Commit

Permalink
- fixed an issue when the heightConstraint receives an infinite value
Browse files Browse the repository at this point in the history
  • Loading branch information
BalazsSzamody committed Apr 21, 2022
1 parent 30b2942 commit 53cd5c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/KeyboardLayoutGuide/KeyboardLayoutGuide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ open class KeyboardLayoutGuide: UILayoutGuide {
height -= bottomDifference
}


guard height != .infinity else {
return
}
heightConstraint?.constant = height
if duration > 0.0 {
animate(note)
Expand Down

0 comments on commit 53cd5c1

Please sign in to comment.