Go to file
Robert Payne 25bd7dab9e Fix for tests 2016-09-14 20:49:36 +12:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj Fix for tests 2016-09-14 20:49:36 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Rework how updateConstraints works if no existing constraints 2016-09-10 21:51:20 +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 Update CHANGELOG.md 2016-09-13 22:33:43 +12:00
CONTRIBUTING.md Added contributing document 2015-09-29 21:26: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 Updated Readme 2016-08-06 22:53:07 +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.