Constraints 1.4.0

Constraints 1.4.0

Maintained by Serhiy Vysotskiy.



  • By
  • Serhiy Vysotskiy

Constraints

Version License Platform

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.