init(_:)
TestTrait.swift:4init(_ updateValues: @escaping (inout DependencyValues) -> Void)
init(_ updateValues: @escaping (inout DependencyValues) -> Void)
s12Dependencies01_A5TraitVyACyAA16DependencyValuesVzYbccfc
What are these?69AVE
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
struct _DependenciesTrait
struct DependencyValues
A collection of dependencies that is globally available.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
let updateValues: (inout DependencyValues) -> Void