Skip to content

catalinaturlea/visualConstraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisualConstraints

[![CI Status](http://img.shields.io/travis/Catalina Turlea/VisualConstraints.svg?style=flat)](https://travis-ci.org/Catalina Turlea/VisualConstraints) Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

VisualConstraints is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "VisualConstraints"

Usage

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() 

Author

Catalina Turlea, [email protected]

License

VisualConstraints is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published