Skip to content

CoderJWYang/SnapKit

This branch is 357 commits behind SnapKit/SnapKit:develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

581d30e · Jul 30, 2015
Apr 15, 2015
May 30, 2015
Apr 15, 2015
Jul 30, 2015
May 30, 2015
Apr 12, 2015
Jul 30, 2015
Jul 30, 2015
Apr 15, 2015
May 28, 2015
Jul 30, 2015

Repository files navigation

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.

About

A Swift Autolayout DSL for iOS & OS X

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 98.0%
  • Objective-C 1.4%
  • Ruby 0.6%