Register client, userId, imageService in DIContainer on login

This commit is contained in:
Brendan Szymanski 2026-06-10 17:26:22 -04:00
parent 44b5a02ab6
commit 5f8cbf0b1e
2 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,9 @@ struct Luminate: App {
)
} else {
ServerSetupView { client, id in
DIContainer.shared.register(\.client, value: client)
DIContainer.shared.register(\.userId, value: id)
DIContainer.shared.register(\.imageService, value: ImageService())
self.client = client
self.userId = id
}

View file

@ -1,6 +1,5 @@
import Foundation
@MainActor
public final class DIContainer {
public static let shared = DIContainer()