From c9a83a57060a474ed117784ad328ce7860661eee Mon Sep 17 00:00:00 2001 From: s4cha Date: Mon, 29 Apr 2019 19:33:35 +0200 Subject: [PATCH] Fixing heightConstraint --- .../KeyboardLayoutGuide/Keyboard+LayoutGuide.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KeyboardLayoutGuide/KeyboardLayoutGuide/Keyboard+LayoutGuide.swift b/KeyboardLayoutGuide/KeyboardLayoutGuide/Keyboard+LayoutGuide.swift index beb2aaa..357f81c 100644 --- a/KeyboardLayoutGuide/KeyboardLayoutGuide/Keyboard+LayoutGuide.swift +++ b/KeyboardLayoutGuide/KeyboardLayoutGuide/Keyboard+LayoutGuide.swift @@ -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 } } }