Skip to content
Discussion options

You must be logged in to vote

Hi Anders,

thanks for asking!

The AuthenticationService is used in a couple of places in the app:

When I started creating the app, I was hoping to be able to use @EnvironmentObject to inject the service where I needed it, but unfortunately it is not possible to fetch the environment when you're inside an ObservableObject.

This is why I decided to use a lightweight dependency injection container. Resolver strikes a nice balance of being extremely lightweight yet powerful, and to this day I use it in many of my apps.

Now, obviously you could implement…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by peterfriese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants