mirror of https://github.com/SnapKit/SnapKit
Updated readme
This commit is contained in:
parent
c5ddeffb0c
commit
ce3bb65b73
|
@ -17,7 +17,7 @@ class MyViewController: UIViewController {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
self.view.addSubview(box)
|
self.view.addSubview(box)
|
||||||
box.snp_makeConstraints { (make) -> Void in
|
box.snp.makeConstraints { (make) -> Void in
|
||||||
make.width.height.equalTo(50)
|
make.width.height.equalTo(50)
|
||||||
make.center.equalTo(self.view)
|
make.center.equalTo(self.view)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue