mirror of https://github.com/SnapKit/SnapKit
Merge pull request #111 from julien-c/patch-1
If you want padding those should be negative
This commit is contained in:
commit
8f2cf170fe
4
docs.md
4
docs.md
|
@ -83,8 +83,8 @@ superview.addSubview(box)
|
||||||
box.snp_makeConstraints { (make) -> Void in
|
box.snp_makeConstraints { (make) -> Void in
|
||||||
make.top.equalTo(superview).offset(20)
|
make.top.equalTo(superview).offset(20)
|
||||||
make.left.equalTo(superview).offset(20)
|
make.left.equalTo(superview).offset(20)
|
||||||
make.bottom.equalTo(superview).offset(20)
|
make.bottom.equalTo(superview).offset(-20)
|
||||||
make.right.equalTo(superview).offset(20)
|
make.right.equalTo(superview).offset(-20)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue