mirror of https://github.com/SnapKit/SnapKit
Removed unsupported autolayout combination
Seems like autolayout no longer supports constraining locations to constants. You must constrain them to a view.
This commit is contained in:
parent
655ea99ff4
commit
9949aba7e8
|
@ -37,7 +37,7 @@ class ViewController: UIViewController {
|
||||||
|
|
||||||
|
|
||||||
view1.snp_makeConstraints { make in
|
view1.snp_makeConstraints { make in
|
||||||
make.top.and.left.equalTo(CGPointZero).insets(padding)
|
make.top.and.left.equalTo(superview).insets(padding)
|
||||||
make.size.equalTo(CGSizeMake(100, 50))
|
make.size.equalTo(CGSizeMake(100, 50))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue