Go to file
Robert Payne 6f0584f855 Update ViewController+SnapKit.swift
Removed unecessary typealias
2015-06-03 15:34:53 +12:00
CodeSnippets Snap is now SnapKit 2015-04-15 23:07:50 +12:00
SnapKit.xcodeproj Added support for view controller layout guides 2015-05-30 19:54:43 +12:00
SnapKit.xcworkspace Snap is now SnapKit 2015-04-15 23:07:50 +12:00
Source Update ViewController+SnapKit.swift 2015-06-03 15:34:53 +12:00
Tests Added support for view controller layout guides 2015-05-30 19:54:43 +12:00
.gitignore Updated gitignore 2015-04-12 22:38:56 +12:00
.travis.yml travis CI: use Xcode 6.3.1 2015-05-27 07:15:49 +08:00
CHANGELOG.md Updated podspec & changelog 2015-04-26 22:02:42 +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 Releasing 0.12.0 2015-05-30 19:55:41 +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.