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.
- Xcode 13.2.1 and above
- Target iOS 10+
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
EGChainable is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EGChainable'
This project is heavy inspired by https://github.com/Ernest0-Production/DeclarativeLayoutKit, thanks for your good idea.
EkkoG, [email protected]
EGChainable is available under the MIT license. See the LICENSE file for more info.