Custom Labeled Content
Creates a standard labeled element, with a view that conveys the value of the element and a label.
Platform Compatibility
Tags
SwiftUI Code
List {
LabeledContent {
Button("bar", action: action)
} label: {
Label("Foo", systemImage: "star")
Text("Sub")
}
}