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

body

The content and behavior of the widget. ウィジェットの内容と挙動。

Declaration 宣言

var body: Self.Body { get }

Discussion 議論

For any widgets that you create, provide a computed body property that defines the widget as a composition of SwiftUI views.

Swift infers the widget’s Body associated type based on the contents of the body property.

See Also 参照

Implementing a Widget ウィジェットの実装