Go to file
Robert Payne db027b3a6f Merge pull request #227 from JamieWhite/develop
Enabling app extension API only for tvOS and OSX targets
2016-04-22 22:33:49 +12:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Example-iOS fixes 2016-03-01 13:23:33 +02:00
SnapKit.xcodeproj Enabling app extension API only for tvOS and OSX targets 2016-04-19 20:50:23 +01:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source added super view methods to ConstraintDescriptionRelatable and tests 2016-04-19 11:50:34 -04:00
Tests added super view methods to ConstraintDescriptionRelatable and tests 2016-04-19 11:50:34 -04:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Update travis to use Xcode 7.3 2016-03-22 10:05:33 +01:00
CHANGELOG.md Updated Changelog 2016-03-25 16:32:41 +13: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 Optimising banner image in readme 2016-01-27 01:15:01 +13:00
SnapKit.podspec Versioning to 0.20.0 2016-03-25 16:28:21 +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.