Go to file
Robert Payne 1ca48df9b1 Merge pull request #211 from rohan-panchal/dev
Added identifier field to ConstraintDescription
2016-03-22 13:02:31 +13:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj Fix improper revert 2016-01-27 01:04:28 +13:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Changed identifier to label/labeled 2016-03-21 18:53:30 -05:00
Tests Changed identifier to label/labeled 2016-03-21 18:53:30 -05:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Update Travis.ci 2015-09-13 01:13:13 +12:00
CHANGELOG.md Prepare 0.19.1 Release 2016-01-27 00:22:50 +13:00
CONTRIBUTING.md Added contributing document 2015-09-29 21:26:40 +13:00
ISSUE_TEMPLATE.md Add issue template 2016-03-02 23:51:37 +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-27 00:20:24 +13:00
README.md Optimising banner image in readme 2016-01-27 01:15:01 +13:00
SnapKit.podspec Prepare 0.19.1 Release 2016-01-27 00:22:50 +13: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.