Type Safely

Type Safely

Using Swinject For SwiftUI Dependency Injection

Daily Coding Tip 206

Type Safely's avatar
Type Safely
Oct 27, 2022
∙ Paid
Photo by Arhihou Anas on Unsplash

Start by adding the Swinject package to your project. You can do this by going to File > Add Packages… and typing the following URL into the search box in the top right:

https://github.com/Swinject/Swinject

Add the Swinject framework, but don’t bother adding the Swinject-Dynamic framework.

Now I’m ready to create MyAssembly…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture