mirror of https://github.com/SnapKit/SnapKit
Updated readme
This commit is contained in:
parent
c5ddeffb0c
commit
ce3bb65b73
|
@ -12,12 +12,12 @@ import SnapKit
|
||||||
class MyViewController: UIViewController {
|
class MyViewController: UIViewController {
|
||||||
|
|
||||||
lazy var box = UIView()
|
lazy var box = UIView()
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
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