View Source Group

<Group>

A collection of elements.

Overview

You can use groups to apply modifiers to multiple elements without code duplication.

<Group class="tint-orange">
    <Button>Orange Button</Button>
    <Toggle>Orange Toggle</Toggle>
    <Slider>Orange Slider</Slider>
</Group>

Groups can also be used to surpass the 10 child limit.

<VStack>
    <Group>
        <Text>1</Text>
        <Text>2</Text>
        <Text>3</Text>
        <Text>4</Text>
        <Text>5</Text>
        <Text>6</Text>
        <Text>7</Text>
        <Text>8</Text>
        <Text>9</Text>
        <Text>10</Text>
    </Group>
    <Text>11</Text>
</VStack>

SwiftUI Documentation

See SwiftUI.Group for more details on this View.