Skip to content

Commit

Permalink
Fixing heightConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Apr 29, 2019
1 parent e1fe8a6 commit c9a83a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ open class KeyboardLayoutGuide: UILayoutGuide {
extension UILayoutGuide {
internal var heightConstraint: NSLayoutConstraint? {
return owningView?.constraints.first {
$0 == self && $0.firstAttribute == .height
$0.firstItem as? UILayoutGuide == self && $0.firstAttribute == .height
}
}
}
Expand Down

0 comments on commit c9a83a5

Please sign in to comment.