--- layout: default id: home ---

SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.

{% highlight swift %} let box = UIView() let container = UIView() container.addSubview(box) box.snp.makeConstraints { (make) -> Void in make.size.equalTo(50) make.center.equalTo(container) } {% endhighlight %}
makes
container
box