From 0974c734b141e96b5895ed69589a7e60ee72a373 Mon Sep 17 00:00:00 2001 From: Satinder Singh Date: Sat, 25 Mar 2017 09:56:38 -0700 Subject: [PATCH] Fixed minor constraint bug --- SnapLayout/Classes/SnapLayout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SnapLayout/Classes/SnapLayout.swift b/SnapLayout/Classes/SnapLayout.swift index 76bed26..b02f3ee 100644 --- a/SnapLayout/Classes/SnapLayout.swift +++ b/SnapLayout/Classes/SnapLayout.swift @@ -153,7 +153,7 @@ public extension UIView { constraintManager.width = widthAnchor.constraint(equalToConstant: width) } if let height = height { - constraintManager.height = widthAnchor.constraint(equalToConstant: height) + constraintManager.height = heightAnchor.constraint(equalToConstant: height) } if let centerX = centerX, centerX { constraintManager.centerX = centerXAnchor.constraint(equalTo: view.centerXAnchor)