There is also SnapKit which I really like:
https://github.com/SnapKit/SnapKit
box.snp_makeConstraints { (make) -> Void in
make.width.height.equalTo(50)
make.center.equalTo(self.view)
}