Skip to content

Commit 55fd076

Browse files
Update README.md
1 parent 6dd0c54 commit 55fd076

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ NSLayoutConstraint.activate([
109109
```swift
110110
redView.constrictEdgesToViewController(self, withinGuides: false)
111111

112-
blueView.constrict(attributes: .width, .height, constant: 75.0)
112+
blueView.constrict(attributes: .width, .height, with: .all(75.0))
113113
.constrictCenterInViewController(self)
114114

115115
greenView.constrict(to: blueView, attributes: .width, .centerYGuide)
116116
.constrictToSuperview(attributes: .height)
117-
.constrict(.trailing, to: blueView, attribute: .leading, constant: 50.0)
117+
.constrict(.trailing, to: blueView, attribute: .leading, with: 50.0)
118118
```
119119

120120
## Sample Project 📲

0 commit comments

Comments
 (0)