iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

List

Disclosure Group

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

Explore Disclosure Group on iPhone in portrait, with SwiftUI code and Apple API documentation.

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

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

Every available iPhone screenshot for Disclosure Group.

1 views