Skip to content

Commit 667fe04

Browse files
authored
Update chapter3-viewcontroller.md
1 parent f4cd439 commit 667fe04

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

document/chapter3-viewcontroller.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,13 @@ iconImageView.snp.makeConstraints {
370370

371371
**However, for multiple constraints of different groups, a single line is not recommended**
372372

373-
``swift
374-
nameLable.snp.makeConstraints {
375-
$0.width.equalToSuperview()
376-
$0.centerY.equalToSuperview()
373+
```swift
374+
nameLabel.snp.makeConstraints {
375+
$0.width.centerY.equalToSuperview()
377376
}
378-
``
377+
```
378+
379+
Different groups of constraints should be separated to make it easier for understanding.
379380

380381
## 3.5 Reactive extension for view controller
381382

0 commit comments

Comments
 (0)