Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josejuanqm/qlayout
A AutoLayout Utility for iOS
https://github.com/josejuanqm/qlayout
Last synced: about 1 month ago
JSON representation
A AutoLayout Utility for iOS
- Host: GitHub
- URL: https://github.com/josejuanqm/qlayout
- Owner: josejuanqm
- License: mit
- Created: 2017-11-19T09:14:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T21:35:57.000Z (over 5 years ago)
- Last Synced: 2024-10-01T18:02:07.574Z (about 1 month ago)
- Language: Objective-C
- Size: 64.5 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
QLayout is an Utility to make Auto Layout easy on iOS.
## Contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)
- [License](#license)## Requirements
- iOS 8.0+
- Swift 3.0+## Installation
### CocoaPods
To integrate QLayout into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!target '' do
pod 'QLayout'
end
```Then, run the following command:
```bash
$ pod install
```---
## Usage
### Quick Start
```swift
import QLayoutclass 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
- Jose Quintero ([@josejuanqm](https://twitter.com/josejuanqm))
## License
QLayout is released under the MIT license. See LICENSE for details.