Skip to content
This repository was archived by the owner on Sep 15, 2019. It is now read-only.

Commit 0974c73

Browse files
author
Satinder Singh
committed
Fixed minor constraint bug
1 parent 06a650a commit 0974c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SnapLayout/Classes/SnapLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public extension UIView {
153153
constraintManager.width = widthAnchor.constraint(equalToConstant: width)
154154
}
155155
if let height = height {
156-
constraintManager.height = widthAnchor.constraint(equalToConstant: height)
156+
constraintManager.height = heightAnchor.constraint(equalToConstant: height)
157157
}
158158
if let centerX = centerX, centerX {
159159
constraintManager.centerX = centerXAnchor.constraint(equalTo: view.centerXAnchor)

0 commit comments

Comments
 (0)