Protocol

EnvironmentalModifier

A modifier that must resolve to a concrete modifier in an environment before use.

Declaration

protocol EnvironmentalModifier where Self.Body == Never

Topics

Resolving a Modifier

func resolve(in: EnvironmentValues) -> Self.ResolvedModifier

Resolve to a concrete modifier in the given environment.

Required.

associatedtype ResolvedModifier

The type of modifier to use after being resolved.

Required.

Relationships

Inherits From

See Also

Supporting Types

protocol EnvironmentKey

A protocol that represents an environment key.