A single component or array of components to group together.
A component whose children are decomposed into an array of subviews.
A function that receives the subviews array and returns a new component layout.
Support
Usage
Basic grouping
Group components without adding any layout container:Applying modifiers to multiple components
Modifiers applied to a Group propagate to each child:Conditional rendering
Subview decomposition
Use the subviews overload to rearrange children of an existing component:Notes
- Unlike VStack, HStack, or ZStack, Group adds no layout semantics. The children are placed according to the parent container’s layout rules.
- The subviews transform overload enables view decomposition — inspecting and rearranging the children of an existing component tree into a new layout.