From 62d340ac6b07d9005ac3045fa5f5b0b13bbd7c83 Mon Sep 17 00:00:00 2001 From: David Langley Date: Wed, 18 Aug 2021 09:23:18 +0100 Subject: [PATCH] Update Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift Co-authored-by: manuroe --- Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift b/Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift index 818f07961..79557e541 100644 --- a/Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift +++ b/Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift @@ -40,7 +40,7 @@ extension View { A modifier for adding a dependency to the SwiftUI view hierarchy's dependency container. Important: When adding a dependency to cast it to the type in which it will be injected. So if adding `MockDependency` but type at injection is `Dependency` remember to cast - to `Dependency`first. + to `Dependency` first. */ func addDependency(_ dependency: T) -> some View { transformEnvironment(\.dependencies) { container in