ClintJang / SuperEasyLayout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SuperEasyLayout

CI Status Version License Platform

Example

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

let label = UILabel()
let button = UIButton()
view.addSubview(label)
view.addSubview(button)

label.left == view.left + 10.0
label.right <= view.right - 10.0
label.top == view.topMargin + 10.0
label.height == 20.0

button.centerX == view.centerX
button.width == view.width * 0.9
button.top == label.bottom + 20.0
button.height == 44.0

Requirements

Installation

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

pod 'SuperEasyLayout'

Author

doil6317, doil6317@gmail.com

License

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

About

License:MIT License


Languages

Language:Swift 91.3%Language:Ruby 8.7%