Hi Sandeep,

Thanks for reading and the feedback. It's true I did not emphasise enough the pros of using Swift Property Wrappers for Dependency Injection. For this article I assumed the reader was familiar with both of these concepts. I also assumed the reader would thus know the pros of using both Dependency Injection and Swift Property Wrappers. There wasn't much for me to add other than the pros of these individually.

It's the limitation is inabiility to do constructor injection for me.

It's not purely academic. I have implemented this in a small project. However when the project grows in complexity I plan to move constructor injection for which I'll leave Swift Property Wrappers behind.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store