SwiftUIMercari
SwiftUI state ownership
In a SwiftUI product editing screen, the parent view owns the product model and a child view edits just the price field. Among @State, @Binding, and @Observable, which would you put where?
SwiftUI state ownership
In a SwiftUI product editing screen, the parent view owns the product model and a child view edits just the price field. Among @State, @Binding, and @Observable, which would you put where?
SwiftUIMultiple choiceIntro
You're building a SwiftUI settings screen. A child view SettingsRow with a toggle needs t…
#state #binding
SwiftUIMultiple choiceIntro
Select all the correctly matched pairs of situation and SwiftUI property wrapper. (Assume…
#state #binding
SwiftUIShort answerAdvanced
When working with an iOS 17 @Observable class in SwiftUI views, using "who owns it" and "…
#state #observation
SwiftUIShort answerBasics
A counter screen built in SwiftUI has increment, decrement, and reset buttons plus a disp…
#swiftui #state