Disclosure Group
A view that shows or hides another content view, based on the state of a disclosure control.
Platform Compatibility
iOS 14.0+ iPadOS 14.0+ macOS 11.0+ visionOS 1.0+
Tags
SwiftUI Code
List {
DisclosureGroup("Header") {
Text("Foo")
Text("Bar")
}
}
Found an issue or have a suggestion?
Created: August 11, 2025Updated: August 11, 2025