Contents

makeBody(configuration:)

Creates a view representing the body of a group box.

Declaration

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

Parameters

  • configuration:

    The properties of the group box instance being created.

Discussion

SwiftUI calls this method for each instance of GroupBox created within a view hierarchy where this style is the current group box style.

See Also

Creating custom group box styles