Go to file
Robert Payne 0abd9134ce Merge branch 'develop' of github.com:SnapKit/SnapKit into develop 2016-06-21 19:02:38 +12: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 Update for Swift 2.3 2016-06-21 18:56:32 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Update for Swift 2.3 2016-06-21 18:56:32 +12:00
Tests 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
.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 Releasing 0.21.0 2016-05-11 14:45:58 +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 Releasing 0.21.0 2016-05-11 14:45:58 +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.