Latest 0.0.2
Homepage https://github.com/chunxige/TitleImageEdgeinsetsButton
License MIT
Platforms ios 9.0
Authors

一个轻便的调整button中title和image的间距的和位置的库

  • 修改按钮和图片的相对的位置和间距
let button = CXSpacingButton()
button.imagePosition = .right
button.spacing = 10

TitleImageEdgeinsetsButton

  • 修改按钮和图片相对于各自最近一条边的距离
let button = CXSideButton()
button.imageSideAlignment = .left(10, titleRight: 10)

TitleImageEdgeinsetsButton

Latest podspec

{
    "name": "TitleImageEdgeinsetsButton",
    "version": "0.0.2",
    "summary": "u8f7bu677eu8c03u6574buttonu4e2dtitleu548cimageu7684u4f4du7f6eu548cu95f4u8ddd",
    "description": "u7ea0u7ed3buttonu4e2dtitleu548cimageu95f4u8dddu548cu4f4du7f6eu7684u540cu5b66u4eecuff0cu8f7bu677eu89e3u51b3",
    "homepage": "https://github.com/chunxige/TitleImageEdgeinsetsButton",
    "license": {
        "type": "MIT",
        "file": "README.md"
    },
    "authors": {
        "chunxi": ""
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/chunxige/TitleImageEdgeinsetsButton.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.swift"
    ]
}

Pin It on Pinterest

Share This