UIBuilderKit 0.1.0

UIBuilderKit 0.1.0

Maintained by ‘jsryudev’.



  • By
  • jsryudev

UIBuilderKit

Version License Platform

🛠 UIKit's builder pattern.

At a Glance

let textLabel = UILabel.Builder()
  .text("Hello, World!")
  .textAlignment(.center)
  .textColor(.black)
  .font(.italic)
  .build()

This is equivalent to

let label: UILabel = {
  let label = UILabel()
  label.text = "Hello, World!"
  label.textAlignment = .center
  label.textColor = .black
  label.font = .italicSystemFont(ofSize: 17)
  return label
}()

Installation

UIBuilderKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'UIBuilderKit'

Author

jsryudev, [email protected]

License

UIBuilderKit is available under the MIT license. See the LICENSE file for more info.