EnvironmentReader

public struct EnvironmentReader : Element

An element that dynamically builds its content based on the environment.

Use this element to build elements whose contents may change depending on the Environment.

Example

EnvironmentReader { environment -> Element in
    MyElement(
        foo: environment.foo
    )
}

Seealso

ProxyElement

Seealso

Environment