Skip to content

Instantly share code, notes, and snippets.

@avii-7
Created February 4, 2026 07:18
Show Gist options
  • Select an option

  • Save avii-7/334dd5186f0e2f4e380819deb4ec8952 to your computer and use it in GitHub Desktop.

Select an option

Save avii-7/334dd5186f0e2f4e380819deb4ec8952 to your computer and use it in GitHub Desktop.
SwiftUI Update Mechanism
Changes in construction parameters cause the view's body to re-evaluate regardless of that
parameter is using in the body or not.
SwiftUI cannot determine whether this change will cause value of body to change or not, it will blindly re-evalute the body.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment