Skip to content

Commit fb4d7ea

Browse files
Merge pull request #1 from componentskit/fix/incorrectly-saved-constraints
Save `below` and `above` constraints correctly
2 parents aad6c77 + 45d5b22 commit fb4d7ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AutoLayout/UIView+Layout.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ extension UIView {
261261
)
262262
constraint.isActive = true
263263

264-
return LayoutConstraints(bottom: constraint)
264+
return LayoutConstraints(top: constraint)
265265
}
266266

267267
/// Constrains the view's bottom anchor to the top anchor of another view, positioning it above the specified view vertically.
@@ -284,7 +284,7 @@ extension UIView {
284284
)
285285
constraint.isActive = true
286286

287-
return LayoutConstraints(top: constraint)
287+
return LayoutConstraints(bottom: constraint)
288288
}
289289
}
290290

0 commit comments

Comments
 (0)