Updated readme

This commit is contained in:
Robert Payne 2016-01-27 00:00:26 +13:00
parent c5ddeffb0c
commit ce3bb65b73
1 changed files with 3 additions and 3 deletions

View File

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