Disclosure Group
A view that shows or hides another content view, based on the state of a disclosure control.
Platform Compatibility
Tags
SwiftUI Code
List {
DisclosureGroup("Header") {
Text("Foo")
Text("Bar")
}
}A view that shows or hides another content view, based on the state of a disclosure control.
List {
DisclosureGroup("Header") {
Text("Foo")
Text("Bar")
}
}A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.
Sets the label that is used in a section index to point to this section, typically only a single character long. Changes the visibility of the list section index.
A gauge style that displays a bar that fills from leading to trailing edges as the gauge’s current value increases
Specifies the preferred placement for the tabs of a TabView in the sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown. For example, on iOS, it can enforce the sidebar on large-screen devices like the Pro Max, and iPhone Duo. This modifier has no effect on iPadOS.
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value
A style for a product view that’s suitable for layouts with less available space, or for displaying more items in a small amount of space.