Hello,
I'm excited to share my project, VDChain, a new Swift library that simplifies object modification with intuitive function chaining. By combining @dynamicMemberLookup
, KeyPath
, and callAsFunction
, VDChain makes your code cleaner and more maintainable.
With VDChain, you can easily change properties of objects like this:
let label = UILabel().chain
.text("Hello, Swift")
.textColor(.red)
.font(.system(24))
.apply()
You can check out the library on GitHub and see how it's used in my other project, VDLayout.
Please feel free to give it a try and let me know your thoughts, suggestions, or issues. Contributions are also welcome!