# view groupings

[SwiftUI](..) ⟩ [view]() ⟩ groupings

{% hint style="success" %}
Create <mark style="color:yellow;">groups of views</mark> that serve different purposes.
{% endhint %}

For example：

* [`Group`](https://developer.apple.com/documentation/swiftui/group)： <mark style="color:yellow;">treats the specified views as a unit</mark> <mark style="color:red;">without</mark> imposing any additional [layout](layout) or appearance characteristics.
* [`Form`](https://developer.apple.com/documentation/swiftui/form) ：presents a group of elements with a platform-specific appearance that’s suitable for <mark style="color:yellow;">gathering input</mark> from people.
* [`ForEach`](https://developer.apple.com/documentation/swiftui/foreach)：<mark style="color:yellow;">computes views on demand</mark> from an underlying collection of identified data.

{% hint style="info" %}
For design guidance, see [Layout](https://developer.apple.com/design/Human-Interface-Guidelines/layout) in the Human Interface Guidelines.
{% endhint %}

{% tabs %}
{% tab title="🔴 主題" %}
* [foreach](grouping/foreach "mention")
{% endtab %}

{% tab title="📘 手冊" %}
* [SwiftUI](https://developer.apple.com/documentation/swiftui) ⟩ [View groupings](https://developer.apple.com/documentation/swiftui/view-groupings)&#x20;
{% endtab %}
{% endtabs %}
