|
|
10 سال پیش | |
|---|---|---|
| CodeSnippets | 10 سال پیش | |
| SnapKit.xcodeproj | 10 سال پیش | |
| SnapKit.xcworkspace | 10 سال پیش | |
| Source | 10 سال پیش | |
| Tests | 10 سال پیش | |
| .gitignore | 10 سال پیش | |
| .travis.yml | 10 سال پیش | |
| CHANGELOG.md | 10 سال پیش | |
| LICENSE | 10 سال پیش | |
| README.md | 10 سال پیش | |
| SnapKit.podspec | 10 سال پیش |

SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.
SnapKit does build just fine, Travis.ci doesn't support Swift 1.2 yet so this will continue to show as failing until it is updated.
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.