Go to file
Robert Payne f03dd0e85f Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop
# Conflicts:
#	.travis.yml
#	CHANGELOG.md
#	README.md
#	SnapKit.podspec
#	SnapKit.xcodeproj/project.pbxproj
#	SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit OSX.xcscheme
#	SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit iOS.xcscheme
#	Source/Constraint.swift
#	Source/ConstraintAttributes.swift
#	Source/ConstraintDescription.swift
#	Source/ConstraintMaker.swift
#	Source/ConstraintView.swift
#	Source/Debugging.swift
#	Source/LayoutConstraint.swift
#	Source/View+SnapKit.swift
#	Tests/Tests.swift
2016-09-14 20:55:25 +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 Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:55:25 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Rework how updateConstraints works if no existing constraints 2016-09-10 21:51:20 +12:00
Tests Remove prints 2016-09-10 16:40:55 +12:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Improve project setup for multiplatform 2016-09-14 20:44:06 +12:00
CHANGELOG.md Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:55:25 +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-27 00:20:24 +13:00
README.md Merge branch 'feature/0.40.0' of github.com:SnapKit/SnapKit into develop 2016-09-14 20:55:25 +12:00
SnapKit.podspec Update podspec 2016-09-02 00:58:22 +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) -> Void in
           make.width.height.equalTo(50)
           make.center.equalTo(self.view)
        }
    }

}

Resources

License

MIT license. See the LICENSE file for details.