mirror of https://github.com/SnapKit/SnapKit
If you want padding those should be negative
This commit is contained in:
parent
7fb543df54
commit
a0b841067e
4
docs.md
4
docs.md
|
@ -83,8 +83,8 @@ superview.addSubview(box)
|
|||
box.snp_makeConstraints { (make) -> Void in
|
||||
make.top.equalTo(superview).offset(20)
|
||||
make.left.equalTo(superview).offset(20)
|
||||
make.bottom.equalTo(superview).offset(20)
|
||||
make.right.equalTo(superview).offset(20)
|
||||
make.bottom.equalTo(superview).offset(-20)
|
||||
make.right.equalTo(superview).offset(-20)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue