Type Safely

Type Safely

Using Swinject For SwiftUI Dependency Injection

Daily Coding Tip 206

Type Safely's avatar
Type Safely
Oct 27, 2022
∙ Paid
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture