Contents

ToggleStyleConfiguration.Label

A type-erased label of a toggle.

Declaration

@MainActor @preconcurrency struct Label

Overview

SwiftUI provides a value of this type — which is a View type — as the label to your custom toggle style implementation. Use the label to help define the appearance of the toggle.

See Also

Getting the label view