/XAutoLayout

swift only. Simplify writing AutoLayout in code

Primary LanguageSwiftMIT LicenseMIT

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.