FluentBuilder 0.2.0

FluentBuilder 0.2.0

Maintained by Héctor Marqués.



FluentBuilder

Platform SwiftPM CocoaPods License

Examples

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()

Alternatives

License

FluentBuilder is released under the MIT license. See LICENSE file for details.