Skip to content

Commit 0a68303

Browse files
committed
Fix SnapKit example: self is required because of closure context
1 parent 79a3921 commit 0a68303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Modern AutoLayout wrappers like [SnapKit](https://github.com/SnapKit/SnapKit) ar
5353
~~~swift
5454
box.snp.makeConstraints { (make) -> Void in
5555
make.width.height.equalTo(50)
56-
make.center.equalTo(view)
56+
make.center.equalTo(self.view)
5757
}
5858
~~~
5959

0 commit comments

Comments
 (0)