Contents

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