mirror of https://github.com/SnapKit/SnapKit
Added documentation for priority shortcuts. (#468)
This commit is contained in:
parent
32f1ae7f7d
commit
a0aaba1f38
6
docs.md
6
docs.md
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue