Skip to content

jsryudev/UIBuilderKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Builder pattern implementation for UIKit

Resources

License

Stars

Watchers

Forks

Packages

No packages published