Daily iOS
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?

Submit