mirror of https://github.com/SnapKit/SnapKit
Updated docs to reflect insets change
This commit is contained in:
parent
03234bf6d9
commit
0b1e2d9e3f
4
docs.md
4
docs.md
|
@ -95,7 +95,7 @@ let box = UIView()
|
||||||
superview.addSubview(box)
|
superview.addSubview(box)
|
||||||
|
|
||||||
box.snp_makeConstraints { (make) -> Void in
|
box.snp_makeConstraints { (make) -> Void in
|
||||||
make.edges.equalTo(superview).insets(UIEdgeInsetsMake(20, 20, 20, 20))
|
make.edges.equalTo(superview).inset(UIEdgeInsetsMake(20, 20, 20, 20))
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ make.edges.equalTo(view2);
|
||||||
|
|
||||||
// make top = superview.top + 5, left = superview.left + 10,
|
// make top = superview.top + 5, left = superview.left + 10,
|
||||||
// bottom = superview.bottom - 15, right = superview.right - 20
|
// bottom = superview.bottom - 15, right = superview.right - 20
|
||||||
make.edges.equalTo(superview).insets(UIEdgeInsetsMake(5, 10, 15, 20))
|
make.edges.equalTo(superview).inset(UIEdgeInsetsMake(5, 10, 15, 20))
|
||||||
```
|
```
|
||||||
|
|
||||||
#### size
|
#### size
|
||||||
|
|
Loading…
Reference in New Issue