Go to file
Robert Payne ffd450754a Update deprecation notice versions 2016-09-14 20:59:51 +12:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Example-iOS Fixed landscape layout for redView and fixed typo in Contributing.md 2016-09-06 21:14:02 -04:00
SnapKit.xcodeproj Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:55:25 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Update deprecation notice versions 2016-09-14 20:59:51 +12:00
Tests Remove prints 2016-09-10 16:40:55 +12:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Improve project setup for multiplatform 2016-09-14 20:44:06 +12:00
CHANGELOG.md Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:57:57 +12:00
CONTRIBUTING.md Update CONTRIBUTING.md 2016-09-06 22:09:55 -04:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2016-03-30 01:54:40 +13:00
LICENSE Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Package.swift Update license file on Package.swift 2016-01-21 11:06:31 +13:00
README.md Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:55:25 +12:00
SnapKit.podspec Update podspec 2016-09-02 00:58:22 +12:00

README.md

SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.

Build Status Cocoapods Compatible Carthage compatible

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)
        }
    }

}

Resources

License

MIT license. See the LICENSE file for details.