From ffc618e2f78b3d0a91d77dc65b0f69aca4ef4ccb Mon Sep 17 00:00:00 2001 From: Maxim Bazarov Date: Thu, 13 Oct 2022 22:30:46 +0200 Subject: [PATCH] update documentation --- README.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/README.md b/README.md index 446a636..a8c7c20 100644 --- a/README.md +++ b/README.md @@ -101,19 +101,6 @@ struct RemoteImage_Previews: PreviewProvider { } ``` -## Advanced - -By default, all the dependencies are **providing a new instance** (`.temporary`) -and **for each injection point** (`.local`) -and deallocated once an injection point is deallocated. -```swift -@Injected(\.networking, .temporary, .local) var network -``` - -But you can alter it with `.shared` ``Dependency/Scope`` to provide the same instance to all consumers with `.shared` ``Dependency/Scope`` preferred. -Also, you can configure a `.permanent` ``Lifespan`` to hold it until the termination of the app. - - ## Dependency Scope and Lifetime By default, all the dependencies are **providing a new instance** (`.temporary`)