Go to file
Robert Payne c99f28fde7 Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2015-04-23 00:32:00 +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 Removed 'final' declaration in attempt to fix odd crashes 2015-04-23 00:31:40 +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.