# update view states

[SwiftUI](..) ⟩ [Gestures]() ⟩ update view states

{% hint style="success" %}
**transient** vs. **permanent** state:

* <mark style="color:red;">**transient**</mark>: <mark style="color:orange;">**reset**</mark> to its <mark style="color:orange;">**iniatial value**</mark> when gesture **ends** or **cancelled**.
* <mark style="color:red;">**permanent**</mark>: <mark style="color:orange;">**won't reset**</mark> once the gesture ends, <mark style="color:green;">**view states**</mark> are <mark style="color:red;">**permanent**</mark>.
{% endhint %}

{% tabs %}
{% tab title="📗 參考" %}
* [x] [SwiftUI](https://developer.apple.com/documentation/swiftui) ⟩ [Gestures](https://developer.apple.com/documentation/swiftui/gestures) ⟩ [Adding Interactivity with Gestures](https://developer.apple.com/documentation/swiftui/adding-interactivity-with-gestures) ⭐️
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
