Go to file
Robert Payne d44a9bebd2 Merge pull request #80 from SnapKit/develop
Merge develop
2015-04-17 00:47:59 +12:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Loosen API a bit to better allow chaining order 2015-04-16 10:07:51 +12:00
Tests Snap is now SnapKit 2015-04-15 23:07:50 +12:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Snap is now SnapKit 2015-04-15 23:07:50 +12:00
CHANGELOG.md Snap is now SnapKit 2015-04-15 23:07:50 +12:00
LICENSE Snap is now SnapKit 2015-04-15 23:07:50 +12:00
README.md Update README.md 2015-04-17 00:47:03 +12:00
SnapKit.podspec Snap is now SnapKit 2015-04-15 23:07:50 +12:00

README.md

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

Build Status

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.