ChainableUIKit 1.0.2

ChainableUIKit 1.0.2

zhiguangqiao 维护。



  • qiaozhiguang

ChainableUIKit

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

要求

安装

ChainableUIKit 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile:

pod 'ChainableUIKit'

    private let label = UILabel()
        .chain
        .fixSize(CGSizeMake(110, 32))
        .backgroundColor(.init(hex: "#161F5B"))
        .cornerRadius(4)
        .textAlignment(.center)
        .font(.systemFont(ofSize: 14))
        .textColor(.white).borderColor(.white)
        .borderWidth(0.5)
        .view
        
      private lazy var buttonStackView = UIStackView()
        .chain
        .axis(.horizontal)
        .distribution(.equalSpacing)
        .backgroundColor( .init(hex: "#FFE3A6"))
        .arrangedViews([
            subButton,
            UIView()
                .chain
                .backgroundColor(.init(hex: "#141B26"))
                .fixSize(CGSize(width: 1, height: 50))
                .view,
            addButton
        ])
        .view

作者

乔志光,[email&protected]

许可

ChainableUIKit按照MIT许可证提供。更多信息请参见LICENSE文件。