ReplySep 15, 2024it depends on the case. State is the source of truth. So use StateObject in views where the data is created/captured. Other views should use ObservedObject to observe the state.MVVM in SwiftUI
ReplyMay 14, 2023Not necessarily. I’m using List for the .listStyle(.insetGrouped) view modifier. If you’re using Form , you can use .form(.grouped) for the same result.Section and Navigation Link in SwiftUI