Go to file
Jurvis Tan 9c321612c0 switched deployment target to iOS 8.0 for target and tests 2015-05-03 23:24:45 +08:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj switched deployment target to iOS 8.0 for target and tests 2015-05-03 23:24:45 +08: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 Updated podspec & changelog 2015-04-26 22:02:42 +12:00
LICENSE Snap is now SnapKit 2015-04-15 23:07:50 +12:00
README.md Update README.md 2015-04-26 22:12:25 +12:00
SnapKit.podspec Updated podspec & changelog 2015-04-26 22:02:42 +12:00

README.md

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

Build Status

SnapKit does build just fine, Travis.ci doesn't support Swift 1.2 yet so this will show as failing until it is supported.

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.