A

Admin • 833K Points
Coach

Q. What does `@State` in SwiftUI signify?

  • (A) A constant value
  • (B) An immutable variable
  • (C) A property that can change and is watched by the view
  • (D) A global variable
  • Correct Answer - Option(C)
  • Views: 29
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`@State` is a property wrapper used to create mutable state in SwiftUI views.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.