Latest 1.0.0
Homepage https://github.com/cbknight/SwiftHandyAutoLayout
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Handy extension for generate NSLayoutConstraint programmatically by Swift.

Install

pod 'SwiftHandyAutoLayout'

Examples

self.view.addConstraint(self.tableView.constraintCenterXEqualToView(self.view))
self.view.addConstraint(self.tableView.constraintWidthEqualToView(self.view))

self.view.addConstraints(self.nextStepButton.constraintsSize(CGSize(width: 300, height: 40)))   
self.view.addConstraint(self.nextStepButton.constraintCenterXEqualToView(self.view))

Reference

Latest podspec

{
    "name": "SwiftHandyAutoLayout",
    "version": "1.0.0",
    "summary": "A handy methods for AutoLayout By Swift",
    "description": "A view extension for AutoLayout handy methods",
    "homepage": "https://github.com/cbknight/SwiftHandyAutoLayout",
    "license": "MIT",
    "authors": {
        "Chrisbin": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/cbknight/SwiftHandyAutoLayout.git",
        "tag": "1.0.0"
    },
    "source_files": "UIViewLayoutExtension.swift",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This