Which SwiftUI property wrapper stores local mutable state of a view?
- @State
- @IBOutlet
- @main
- @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