Added documentation for priority shortcuts. (#468)

This commit is contained in:
Benjamin Chrobot 2017-10-13 05:33:49 -04:00 committed by Robert Payne
parent 32f1ae7f7d
commit a0aaba1f38
1 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,12 @@ Priorities are can be tacked on to the end of a constraint chain like so:
make.top.equalTo(label.snp.top).priority(600)
```
You may also use priority shortcuts: `.low`, `.medium`, `.high`, `.required`.
```swift
make.top.equalTo(label.snp.top).priority(.medium)
```
### Composition, composition, composition
SnapKit also gives you a few convenience methods to create multiple constraints at the same time.