Latest 0.0.1
Homepage https://github.com/perrywky/CCFlexbox
License MIT
Platforms ios 8.0, requires ARC
Authors

Flexbox like layout container implemented by AutoLayout.

Demo

Run the demo project to see the potentials.

Usage


//row stack
CCFlexbox.row(
    item1.cfb_flexGrow(1).cfb_right(5),
    item2.cfb_alignSelf(.Center),
    item3.cfb_flexBasis(80, 80).cfb_left(5)
).justifyContent(.SpaceBetween).alignItems(.FlexStart)

//column stack
CCFlexbox.column(
    item1,
    item2,
    item3
)

//nested stacks
CCFlexbox.row(
    item1,
    CCFlexbox.column(
        item2,
        item3
    )
)

Install

Cocoapods


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

    pod 'CCFlexbox'

iOS 7.0

Copy Source/CCFlexbox.swift to your project.

License

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

Latest podspec

{
    "name": "CCFlexbox",
    "version": "0.0.1",
    "summary": "An iOS layout library like Flexbox.",
    "homepage": "https://github.com/perrywky/CCFlexbox",
    "screenshots": "https://raw.githubusercontent.com/perrywky/CCFlexbox/master/demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Qi Peng": "[email protected]"
    },
    "social_media_url": "https://twitter.com/perrywky",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/perrywky/CCFlexbox.git",
        "tag": "0.0.1"
    },
    "source_files": "Source/CCFlexbox.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This