Associated Type 関連型

Body

A view that represents the appearance and interaction of a toggle. あるビュー、それはあるトグルの外観と相互作用を表します。

Declaration 宣言

associatedtype Body : View

Discussion 議論

SwiftUI infers this type automatically based on the View instance that you return from your implementation of the makeBody(configuration:) method.

See Also 参照

Creating Custom Toggle Styles