If you want padding those should be negative

This commit is contained in:
Julien Chaumond 2015-06-10 23:04:59 +02:00
parent 7fb543df54
commit a0b841067e
1 changed files with 2 additions and 2 deletions

View File

@ -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)
} }
``` ```