Go to file
Peter Schumacher a07ead5c8c added Support for UILayoutguide 2016-08-29 16:34:12 +02:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Example-iOS Remove unneeded closure ornamentation 2016-05-12 10:55:55 +02: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 rename 'nativeConstraints' to 'layoutConstraints' for API consistency 2016-06-21 16:01:26 -06: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 Added contributing document 2015-09-29 21:26:40 +13: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.