Go to file
Suyeol Jeon ba03f22eb8 Add availability check for iOS 8 and OS X 10.10 methods.
- `NSLayoutConstraint.activateConstraints(_:)`
- `NSLayoutConstraint.deactivateConstraints(_:)`
2015-09-18 13:18:28 +09:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj Updated for Swift 2.0 2015-07-30 19:30:56 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Add availability check for iOS 8 and OS X 10.10 methods. 2015-09-18 13:18:28 +09:00
Tests Updated for Swift 2.0 2015-07-30 19:30:56 +12:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml Update Travis.ci 2015-09-13 01:13:13 +12:00
CHANGELOG.md Prepare Release 2015-09-13 00:59:01 +12:00
LICENSE Snap is now SnapKit 2015-04-15 23:07:50 +12:00
README.md Update README.md 2015-05-28 14:08:18 +12:00
SnapKit.podspec For now require 10.10 2015-09-13 01:09: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.