Passing An ObservedObject To Nested Child Views SwiftUI (SwiftUI Data Flow)
For ObservableObject the pairing ObservedObject makes view refresh, so to solve the task in question I would recommend the following approach: Demo Code import SwiftUI import Combine class Sport: ObservableObject, Hashable, Identifiable { static func == (lhs: Sport, rhs: Sport) -> Bool { lhs.name == rhs.name && lhs.isFavorite == rhs.isFavorite && lhs.school == rhs.school } … Read more