Swift Auto Layout DSL for iOS & OS X

Auto Layout is handy and all, yet it can be cumbersome to code. SnapKit is a DSL to simplify laying out a UI:

“Simple & Expressive chaining DSL allows building constraints with minimal amounts of code while ensuring they are easy to read and understand.”

With SnapKit you can write code like this:

let box = UIView()
box.snp_makeConstraints { (make) -> Void in
    make.edges.equalTo(superview).inset(UIEdgeInsetsMake(20, 20, 20, 20))