Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.49 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.49 KB

EGChainable

Version License Platform

Intro

Chainable tools for iOS API, most code is generated by Sourcery.

The generated code is under EGChainable/Classes/Generated.

To generate code, run script generator.sh on a Mac with Xcode installed.

Requirement

  • Xcode 13.2.1 and above
  • Target iOS 10+

Usage

let label = UILabel()
label.chainable.text("ahhhh").textColor(.black).backgroundColor(.red)

For class appear at Chainable.swift, all open or public var is support, all Void return method is support.

For all supported method, you can visit EGChainable/Classes/Generated

Installation

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

pod 'EGChainable'

Thanks

This project is heavy inspired by https://github.com/Ernest0-Production/DeclarativeLayoutKit, thanks for your good idea.

Author

EkkoG, beijiu572@gmail.com

License

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