[![CI Status](http://img.shields.io/travis/Catalina Turlea/VisualConstraints.svg?style=flat)](https://travis-ci.org/Catalina Turlea/VisualConstraints)
To run the example project, clone the repo, and run pod install
from the Example directory first.
VisualConstraints is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "VisualConstraints"
To use the Categories in your project make sure to use
#import <VisualConstraints/VisualConstraints.h>
The methods to add constraints to UI elements are pretty straight forward and easy to use:
let contentView = UIView()
self.view.addSubview(contentView)
// Add the constraints
contentView.addConstraintsForWidth(300)
contentView.addConstraints(forWidth: 200)
contentView.addConstraintsToCenter()
Catalina Turlea, [email protected]
VisualConstraints is available under the MIT license. See the LICENSE file for more info.