|
|
пре 9 година | |
|---|---|---|
| CodeSnippets | пре 10 година | |
| Example-iOS | пре 9 година | |
| SnapKit.xcodeproj | пре 9 година | |
| SnapKit.xcworkspace | пре 10 година | |
| Source | пре 9 година | |
| Tests | пре 9 година | |
| .gitignore | пре 10 година | |
| .travis.yml | пре 9 година | |
| CHANGELOG.md | пре 9 година | |
| CONTRIBUTING.md | пре 10 година | |
| ISSUE_TEMPLATE.md | пре 9 година | |
| LICENSE | пре 10 година | |
| Package.swift | пре 10 година | |
| README.md | пре 9 година | |
| SnapKit.podspec | пре 9 година |

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 in
make.width.height.equalTo(50)
make.center.equalTo(self.view)
}
}
}
MIT license. See the LICENSE file for details.