Restraint is a very very small library to help make your use of NSLayoutConstraint in Swift more legible & declarative.
- Like programmatic views?
- Like the benefits of using pure AutoLayout?
- Like clear and minimal interfaces?
- Dislike Visual Format Language and “stringly” typing?
- Dislike the verbosity of NSLayoutConstraint?
- Dislike heavy dependencies?
- Practice Restraint!
Features:
- As simple as possible
- Easy to maintain
- Easy to replace
- Easy to circumvent
- Not too clever
- Sane defaults
- Automatic handling of setTranslatesAutoresizingMaskIntoConstraints
