A AutoLayout Utility for iOS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example podspec lint Nov 19, 2017
QLayout fix width / height constraints Nov 28, 2017
.gitignore Initial commit Nov 19, 2017
.swift-version podspec lint Nov 19, 2017
.travis.yml Initial commit Nov 19, 2017
LICENSE Initial commit Nov 19, 2017
QLayout.podspec podspec update Dec 5, 2017
README.md podspec lint Nov 19, 2017
_Pods.xcodeproj Initial commit Nov 19, 2017

README.md

QLayout is an Utility to make Auto Layout easy on iOS.

Contents

Requirements

  • iOS 8.0+
  • Swift 3.0+

Installation

CocoaPods

To integrate QLayout into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'QLayout'
end

Then, run the following command:

$ pod install

Usage

Quick Start

import QLayout

class ViewController: UIViewController {

    lazy var subView = UIView()

    override func viewDidLoad() {
        super.viewDidLoad()

        self.view.addSubview(subView)
        
        subView.layout.width.height.equalTo(50)
        subView.layout.center.equalTo(view)
    }

}

Credits

License

QLayout is released under the MIT license. See LICENSE for details.