Contents

makeBody(configuration:)

Creates a view that represents the body of a disclosure group.

Declaration

@ViewBuilder @MainActor @preconcurrency func makeBody(configuration: Self.Configuration) -> Self.Body

Parameters

  • configuration:

    The properties of the instance being created.

Discussion

SwiftUI calls this method for each instance of DisclosureGroup that you create within a view hierarchy where this style is the current DisclosureGroupStyle.

See Also

Creating custom disclosure group styles