Disclosure Group

A view that shows or hides another content view, based on the state of a disclosure control.

Disclosure Group - iOS Light Mode Preview

Platform Compatibility

iOS 14.0+ iPadOS 14.0+ macOS 11.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
List {
  DisclosureGroup("Header") {
    Text("Foo")
    Text("Bar")
  }

}

Found an issue or have a suggestion?

Created: August 11, 2025Updated: August 11, 2025