mirror of https://github.com/SnapKit/SnapKit
Remove unneeded closure ornamentation
This commit is contained in:
parent
d44776eaf8
commit
c0d8a7d3e8
|
@ -43,16 +43,16 @@ class BasicUIScrollViewController: UIViewController {
|
||||||
|
|
||||||
if (!didSetupConstraints) {
|
if (!didSetupConstraints) {
|
||||||
|
|
||||||
scrollView.snp_makeConstraints { (make) -> Void in
|
scrollView.snp_makeConstraints { make in
|
||||||
make.edges.equalTo(view).inset(UIEdgeInsetsZero)
|
make.edges.equalTo(view).inset(UIEdgeInsetsZero)
|
||||||
}
|
}
|
||||||
|
|
||||||
contentView.snp_makeConstraints { (make) -> Void in
|
contentView.snp_makeConstraints { make in
|
||||||
make.edges.equalTo(scrollView).inset(UIEdgeInsetsZero)
|
make.edges.equalTo(scrollView).inset(UIEdgeInsetsZero)
|
||||||
make.width.equalTo(scrollView)
|
make.width.equalTo(scrollView)
|
||||||
}
|
}
|
||||||
|
|
||||||
label.snp_makeConstraints { (make) -> Void in
|
label.snp_makeConstraints { make in
|
||||||
make.top.equalTo(contentView).inset(20)
|
make.top.equalTo(contentView).inset(20)
|
||||||
make.leading.equalTo(contentView).inset(20)
|
make.leading.equalTo(contentView).inset(20)
|
||||||
make.trailing.equalTo(contentView).inset(20)
|
make.trailing.equalTo(contentView).inset(20)
|
||||||
|
|
Loading…
Reference in New Issue