Forráskód Böngészése

Added documentation for priority shortcuts. (#468)

Benjamin Chrobot 8 éve
szülő
commit
a0aaba1f38
1 módosított fájl, 6 hozzáadás és 0 törlés
  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)
 ```
 
+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.