Latest 0.9.2
Homepage https://github.com/Masonry/Snap
License MIT
Platforms ios 8.0, osx 10.9, requires ARC
Authors

Snap

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.

Latest podspec

{
    "name": "Snap",
    "version": "0.9.2",
    "license": "MIT",
    "summary": "Harness the power of auto layout with a simplified, chainable, and compile time safe syntax.",
    "homepage": "https://github.com/Masonry/Snap",
    "authors": {
        "Robert Payne": "[email protected]"
    },
    "social_media_url": "http://twitter.com/robertjpayne",
    "source": {
        "git": "https://github.com/Masonry/Snap.git",
        "tag": "0.9.2"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9"
    },
    "source_files": "Source/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This