Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBazarov committed Oct 13, 2022
1 parent d4b78d6 commit ffc618e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit ffc618e

Please sign in to comment.