GitHub - wuweiplus/SnapKit: A Swift Autolayout DSL for iOS & OS X

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Repository files navigation

SnapKit is a DSL to make Auto Layout easy on both iOS and OS X.

Build Status

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

Readme

License

MIT license

Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks

Languages

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