live

A collection of “live” dependencies.

DependencyValues.swift:357
static var live: `Self` { get }

A useful starting point for working with live dependencies.

For example, if you want to write a test that exercises your application’s live dependencies (rather than its test dependencies, which is the default), you can override the test’s dependencies with a live value:

func testLiveDependencies() {
  withDependencies { $0 = .live } operation: {
    // Make assertions using live dependencies...
  }
}