Custom Label
Creates a label with a custom title and icon.
Platform Compatibility
Tags
SwiftUI Code
Label {
Text("Foo")
Text("Bar")
} icon: {
Image(systemName: "1.circle")
Image(systemName: "2.circle")
}Creates a label with a custom title and icon.
Label {
Text("Foo")
Text("Bar")
} icon: {
Image(systemName: "1.circle")
Image(systemName: "2.circle")
}Gives your text field a capsule shape. This only has a visible effect on macOS, where the capsule shape is not the default.
The overflow menu of a toolbar. An overflow menu represents actions that are always placed in the toolbar’s overflow menu, regardless of the toolbar mode, platform, or customizability.
Creates a slider to select a value from a given range, subject to a step increment