Introducing VDChain: Effortless Function Chaining in Swift


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")

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!