Constraints
Example
// 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)
Installation
Constraints is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Constraints'
Author
Serhiy Vysotskiy
License
Constraints is available under the MIT license. See the LICENSE file for more info.