|
|
há 10 anos atrás | |
|---|---|---|
| CodeSnippets | há 10 anos atrás | |
| SnapKit.xcodeproj | há 10 anos atrás | |
| SnapKit.xcworkspace | há 10 anos atrás | |
| Source | há 10 anos atrás | |
| Tests | há 10 anos atrás | |
| .gitignore | há 10 anos atrás | |
| .travis.yml | há 10 anos atrás | |
| CHANGELOG.md | há 10 anos atrás | |
| LICENSE | há 10 anos atrás | |
| README.md | há 10 anos atrás | |
| SnapKit.podspec | há 10 anos atrás |

SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.
import SnapKit
class MyViewController: UIViewController {
lazy var box = UIView()
override func viewDidLoad() {
super.viewDidLoad()
self.view.addSubview(box)
box.snp_makeConstraints { (make) -> Void in
make.width.height.equalTo(50)
make.center.equalTo(self.view)
}
}
}
MIT license. See the LICENSE file for details.