TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Jose Quintero.
QLayout is an Utility to make Auto Layout easy on iOS.
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
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)
}
}
QLayout is released under the MIT license. See LICENSE for details.