What is Restraint?

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

Overview

  • Pricing: Free
  • Resource Link: https://github.com/puffinsupply/Restraint
  • Resource Maker: The Puffin Supply Project
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • Carthage: puffinsupply/Restraint