Instance Property インスタンスプロパティ

environment

The environment associated with the graphics context.

Declaration 宣言

var environment: EnvironmentValues { get }

Discussion 議論

SwiftUI initially sets this to the environment of the context’s enclosing view. The context uses values like display resolution and the color scheme from the environment to resolve types like Image and Color. You can also access values stored in the environment for your own purposes.