// pinning and adding subviews backgroundView.constraint(on: view) .pin() blueRect.constraint(on: view) .height(c: 40) .safePin(.top, .left, .bottom) centerSquare.constraint(on: view) .center() .square(to: 100)
Constraints is available through CocoaPods. To install it, simply add the following line to your Podfile:
Constraints is available under the MIT license. See the LICENSE file for more info.