Latest 0.1.1
Homepage https://github.com/ZefengQiu/QLayoutor
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Some layout helper functions (UIView extension). Help to setup UIView width, height, center in its superview, left and right padding/ margin, top and bottom layout guide / safe area.

Before setup UI programmatically, remember always set:

uiview.translatesAutoresizingMaskIntoConstraints = false

Motivation

If you used to do autolayout use storyboard, and want to try programmatically set UI Layout, this project may help you to start knowing how to set things up. Hope you find to the according operation from storyboard to code. If any weird bugs in layout show up in console, recommand a great tool: https://www.wtfautolayout.com/ — Why The Failure Auto Layout?

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 10.0 or newer version. Swift 4.

Installation

QLayoutor is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'QLayoutor'

Author

Zefeng Qiu (Will), [email protected]

License

QLayoutor is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "QLayoutor",
    "version": "0.1.1",
    "module_name": "QLayoutor",
    "summary": "Helper functions to do iOS Auto-layout (Swift).",
    "homepage": "https://github.com/ZefengQiu/QLayoutor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ZefengQiu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ZefengQiu/QLayoutor.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "QLayoutor/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This