Go to file
Charles Kang 4a5a221636 Update CONTRIBUTING.md 2016-09-06 22:09:55 -04:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Example-iOS Fixed landscape layout for redView and fixed typo in Contributing.md 2016-09-06 21:14:02 -04:00
SnapKit.xcodeproj added Support for UILayoutguide 2016-08-29 16:34:12 +02:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source added Support for UILayoutguide 2016-08-29 16:34:12 +02:00
Tests added a Test 2016-08-30 09:08:37 +02:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Fixes tests not compiling on the OS X target and adds a line for the .travis.yml so that tests are always ran 2016-04-26 21:31:07 +02:00
CHANGELOG.md Updated Changelog 2016-08-08 11:13:59 +12:00
CONTRIBUTING.md Update CONTRIBUTING.md 2016-09-06 22:09:55 -04:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2016-03-30 01:54: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 Remove unneeded closure ornamentation 2016-05-12 10:50:57 +02:00
SnapKit.podspec Updated Podspec 2016-08-08 11:14:14 +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 in
           make.width.height.equalTo(50)
           make.center.equalTo(self.view)
        }
    }

}

Resources

License

MIT license. See the LICENSE file for details.