Go to file
ketzusaka 68bebfd105 Add support for Swift 2.3
This updates the code to work under both 2.2 and 2.3 while developers handle their transition period up to Swift 3. The project file is also updated to indicate the last migration, and the version of swift. The version instructs Xcode 8 which internal toolchain is to be used.
2016-06-16 14:04:37 -07: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 Add support for Swift 2.3 2016-06-16 14:04:37 -07:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Add support for Swift 2.3 2016-06-16 14:04:37 -07: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.