> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/ios/swiftui/app/scenes.md).

# scenes

[SwiftUI](/ios/swiftui.md) ⟩ 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](/ios/swiftui/view/hierarchy.md).
* 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](/ios/swiftui/app/scenes/scene.md)
* [WindowGroup](/ios/swiftui/app/windows/windowgroup.md)：一種 [Scene](/ios/swiftui/app/scenes/scene.md)，用來顯示視窗內容
  {% endtab %}

{% tab title="📘 手冊" %}

* [SwiftUI](https://developer.apple.com/documentation/swiftui) ⟩ [Scenes](https://developer.apple.com/documentation/swiftui/scenes)
  {% endtab %}
  {% endtabs %}
