Associated Type 関連型

Body

The type of widget that represents the content of the bundle.

Declaration 宣言

associatedtype Body : Widget

Discussion 議論

When you support more than one widget, Swift infers this type from your implementation of the required body property.

See Also 参照

Implementing a Widget Bundle