Skip to content

Latest commit

 

History

History
73 lines (58 loc) · 1.94 KB

README.md

File metadata and controls

73 lines (58 loc) · 1.94 KB

MobilliumBuilders

Build Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0+
  • Swift 5.0+

Installation

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

pod 'MobilliumBuilders'

Usage

MobilliumBuilders comes with these builders.

  • AttributedStringDictionaryBuilder
  • MutableParagraphStyleBuilder
  • UIButtonBuilder
  • UIImageViewBuilder
  • UILabelBuilder
  • UIScrollViewBuilder
  • UIStackViewBuilder
  • UITextFieldBuilder
  • UIViewBuilder
  • UITableViewBuilder
  • UICollectionViewBuilder
  • UITextViewBuilder
  • UIPageControlBuilder
  • UIProgressViewBuilder
  • UISwitchBuilder
  • UISliderBuilder
  • UIStepperBuilder
  • UIBarButtonItemBuilder

Example usage:

import MobilliumBuilders

  let button = UIButtonBuilder()
      .title("button")
      .backgroundColor(UIColor.red)
      .titleColor(UIColor.white)
      .titleFont(.systemFont(ofSize: 12))
      .cornerRadius(8)
      .build()

 let stackView = UIStackViewBuilder()
      .axis(.vertical)
      .spacing(10)
      .alignment(.center)
      .distribution(.fillEqually)
      .build()

 let view = UIViewBuilder()
      .backgroundColor(UIColor.red)
      .build()

License

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