diff --git a/README.md b/README.md index 031dcb2..f49428d 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,12 @@ import SnapKit class MyViewController: UIViewController { lazy var box = UIView() - + override func viewDidLoad() { super.viewDidLoad() - + self.view.addSubview(box) - box.snp_makeConstraints { (make) -> Void in + box.snp.makeConstraints { (make) -> Void in make.width.height.equalTo(50) make.center.equalTo(self.view) }