Initializer

init()

Creates an environment values instance. 環境値インスタンスを作成します。

Declaration 宣言

init()

Discussion 議論

You don’t typically create an instance of EnvironmentValues directly. Doing so would provide access only to default values that don’t update based on system settings or device characteristics. Instead, you rely on an environment values’ instance that SwiftUI manages for you when you use the Environment property wrapper and the environment(_:_:) view modifier.

See Also 参照

Creating and Accessing Values