Latest 0.0.5
Homepage https://github.com/ONECATYU/FlexKit
License MIT
Platforms ios 8.0, requires ARC
Dependencies Yoga
Frameworks UIKit, Foundation
Authors

在YogaKit基础上,增加链式调用,虚拟div.

使用

  • 可配合UITableView+FDTemplateLayoutCell使用,避免手动计算高度
    FlexKit
contentView.makeLayout { (make) in
    make.padding(12)
    make.addChild(self.titleLabel)
    make.addChild(self.contentLabel).marginTop(10)
    make.addChild(self.contentImgView).marginTop(10)
    make.addChild(nil, withMakeLayout: { (make) in
        make.flexDirection(.row).justifyContent(.spaceBetween).marginTop(10)
        make.addChild(self.userNameLabel)
        make.addChild(self.timeLabel)
    })
}

Latest podspec

{
    "name": "FlexKit",
    "version": "0.0.5",
    "summary": "FlexLayout,u652fu6301u94feu5f0fu8c03u7528,u865au62dfdiv",
    "description": "*u94feu5f0fu8c03u7528n*u865au62dfdivn*u57fau4e8eYogaKit",
    "homepage": "https://github.com/ONECATYU/FlexKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ONECATYU": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ONECATYU/FlexKit.git",
        "tag": "0.0.5"
    },
    "source_files": [
        "FlexKit",
        "FlexKit/**/*.{h,m}"
    ],
    "private_header_files": "FlexKit/{YGLayout+Private.h}",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true,
    "dependencies": {
        "Yoga": [
            "~> 1.8.1"
        ]
    }
}

Pin It on Pinterest

Share This