> 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/view/state.md).

# view state

[SwiftUI](/ios/swiftui.md) ⟩ [view](/ios/swiftui/view.md) ⟩ state

{% hint style="success" %}
The [state](/ios/master/term/state.md) of a [view](/ios/swiftui/view.md).
{% endhint %}

{% tabs %}
{% tab title="🔴 主題" %}

* [state value](/ios/swiftui/view/state/value.md)：a value <mark style="color:yellow;">declared</mark> and <mark style="color:yellow;">initialized</mark> with [@State](/ios/swiftui/view/state/value/state.md).
* [state object](/ios/swiftui/view/state/object.md)：an [observable object](/ios/swiftui/view/state/observable-object/observableobject.md) that is <mark style="color:yellow;">declared</mark> and <mark style="color:yellow;">initialized</mark> as a [property](/ios/swift/type/prop.md) in a [view](/ios/swiftui/view.md).
  {% endtab %}

{% tab title="👥 相關" %}

* [data model](/ios/master/term/data-model.md)
* [view actions](/ios/swiftui/view/action.md)
* some of a view's [environment values](/ios/swiftui/view/environment/value.md) automatically reflect <mark style="color:orange;">system state</mark>, <mark style="color:orange;">user settings</mark>, or <mark style="color:purple;">view state</mark>.
  {% endtab %}
  {% endtabs %}
