|
|
9 years ago | |
|---|---|---|
| CodeSnippets | 10 years ago | |
| SnapKit.xcodeproj | 9 years ago | |
| SnapKit.xcworkspace | 10 years ago | |
| Source | 9 years ago | |
| Tests | 9 years ago | |
| .gitignore | 10 years ago | |
| .travis.yml | 10 years ago | |
| CHANGELOG.md | 9 years ago | |
| CONTRIBUTING.md | 10 years ago | |
| LICENSE | 10 years ago | |
| Package.swift | 10 years ago | |
| README.md | 9 years ago | |
| SnapKit.podspec | 9 years ago |

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.