AlexanderKadyrov / visualConstraints

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.addConstraintsForHeight(200)
contentView.addConstraintsToCenter() 

Author

Catalina Turlea, catalina.turlea@gmail.com

License

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

About

License:MIT License


Languages

Language:Objective-C 91.4%Language:Swift 4.2%Language:Shell 2.2%Language:C 1.7%Language:Ruby 0.5%