# scenes

[SwiftUI](..) ⟩ scenes

{% hint style="success" %}
A <mark style="color:purple;">scene</mark> represents a <mark style="color:yellow;">part of</mark> your app’s <mark style="color:yellow;">user interface</mark> that has a <mark style="color:yellow;">life cycle</mark> that the system manages.&#x20;
{% endhint %}

* An [`App`](https://developer.apple.com/documentation/swiftui/app) instance presents the <mark style="color:purple;">scenes</mark> it contains, while each [`Scene`](https://developer.apple.com/documentation/swiftui/scene) acts as the <mark style="color:yellow;">root element</mark> of a [view hierarchy](../view/hierarchy).
* The system presents <mark style="color:purple;">scenes</mark> in different ways depending on the <mark style="color:yellow;">type of</mark> <mark style="color:purple;">scene</mark>, the <mark style="color:yellow;">platform</mark>, and the <mark style="color:yellow;">context</mark>. A <mark style="color:purple;">scene</mark> might fill the <mark style="color:yellow;">entire</mark> display, <mark style="color:yellow;">part of</mark> the display, a <mark style="color:yellow;">window</mark>, a <mark style="color:yellow;">tab</mark> in a window, or something else.

{% tabs %}
{% tab title="🔴 主題" %}
- [scene](scenes/scene "mention")
- [windowgroup](windows/windowgroup "mention")：一種 [Scene](scenes/scene)，用來顯示視窗內容
{% endtab %}

{% tab title="📘 手冊" %}
* [SwiftUI](https://developer.apple.com/documentation/swiftui) ⟩ [Scenes](https://developer.apple.com/documentation/swiftui/scenes)
{% endtab %}
{% endtabs %}

