Browse Source

Added documentation for priority shortcuts. (#468)

Benjamin Chrobot 8 years ago
parent
commit
a0aaba1f38
1 changed files with 6 additions and 0 deletions
  1. 6 0
      docs.md

+ 6 - 0
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)
 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
 ### Composition, composition, composition
 
 
 SnapKit also gives you a few convenience methods to create multiple constraints at the same time.
 SnapKit also gives you a few convenience methods to create multiple constraints at the same time.