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.

Senior iOS Engineer @ Onfido. Writing weekly blogs on iOS and programming. Follow me to stay tuned!