Skip to content

The UIbuilder easily creates views through chaining.

Notifications You must be signed in to change notification settings

cheonsong/UIBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

UIBuilder

The UIBuilder easily creates views through chaining.

Bilder List

Usage

  1. Create the desired Builder object
  2. After setting properties
  3. Returns UIView as a view variable.
    (❗️layout: as a layout variable)
  let view = ViewBuilder().backgroundColor(.white).view
  
  let button = ButtonBuilder().cornerRadius(10).title("Hello").view
  
  let label = LabelBuilder("Hello World!").font(~).textColor(.white).view
  
  let imageView = ImageViewBuilder(UIImage()).view
  
  ...
  

Author

cheonsong, [email protected]

License

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

About

The UIbuilder easily creates views through chaining.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages