From a0aaba1f387286d92cc23e189d64337f3d46826b Mon Sep 17 00:00:00 2001 From: Benjamin Chrobot Date: Fri, 13 Oct 2017 05:33:49 -0400 Subject: [PATCH] Added documentation for priority shortcuts. (#468) --- docs.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs.md b/docs.md index 1d2fb6a..154c7a0 100644 --- a/docs.md +++ b/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.