Latest 0.0.5
Homepage https://github.com/labi3285/QXRect
License MIT
Platforms ios 8.0, requires ARC
Authors

A super easy use frame tool for iOS views.

Basic Rect

var rect = QXRect()
rect.top = view.qxRect.top
rect.centerX = view.qxRect.centerX
rect.size = .init(20, 20)
myView.qxRect = rect

Relation Rect

myView1.qxRect = view.qxRect.insideRect(.left(10), .center, .size(50, 50))
myView2.qxRect = myView1.qxRect.rightRect(.offset(10))
myView3.qxRect = myView2.qxRect.bottomRect(.offset(10), .left(5), .right(5))

Enjoy!

QXRect

Latest podspec

{
    "name": "QXRect",
    "version": "0.0.5",
    "summary": "A super easy use frame tool for iOS views.",
    "description": "Based on rects relations such as left right top bottom center offset etc. Enjoy!",
    "homepage": "https://github.com/labi3285/QXRect",
    "license": "MIT",
    "authors": {
        "labi3285": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/labi3285/QXRect.git",
        "tag": "0.0.5"
    },
    "source_files": "QXRect/QXRect/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This