kaizeiyimi / XAutoLayout

swift only. Simplify writing AutoLayout in code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XAutoLayout

uses some swift amazing feature, provides a very short and clear way to make constraints in code.

XCode 10.2 and swift 5

3.2 updated to swift5.

Latest version

current latest version is 3.2.

Quick look

you must know what 'left.attr = right.attr * m + c' means for AutoLayout.

import XAutoLayout

// use `=/`` to make composite equal witch creates an array of NSLayoutConstraint
// TODO: add sample code

What's the matter of AutoLayout ?

The API is not friendly for developers. Too long and too complicated. wish XAutoLayout will make our lives easier.

About

swift only. Simplify writing AutoLayout in code

License:MIT License


Languages

Language:Swift 94.9%Language:Ruby 3.4%Language:Objective-C 1.7%