FluentBuilder 0.2.0

FluentBuilder 0.2.0

Héctor Marqués维护。



FluentBuilder

Platform SwiftPM CocoaPods License

示例

UIButton()
    .builder
    .frame(CGRect(x: 0, y: 0, width: 100, height: 100))
    .isSelected(true)
    .build()

UIView
    .builder
    .backgroundColor(.white)
    .alpha(0.5)
    .build()

Builder(UITextField.self)
    .placeholder("Type here")
    .build()

let _: UILabel = Builder()
    .text("text")
    .build()

let _: UIImageView = Builder
    .tintColor(.black)
    .contentMode(.scaleAspectFit)
    .build()

替代方案

许可

FluentBuilder 根据 MIT 许可证发布。有关详细信息,请参阅 LICENSE 文件。