Which SwiftUI property wrapper stores local mutable state of a view?

  1. @State
  2. @IBOutlet
  3. @main
  4. @objc
Answer

A) @State

@State holds view-local state; changing it re-renders the view.

Computer Science MCQ · More iOS: Architecture and Framework MCQs · Practise