SwiftUI: Random “Extra argument in call” error
try making a Group { } around your views. just 10 are allowed in Swiftui…with group you can add more. or use subviews…(would be cleaner code too)
try making a Group { } around your views. just 10 are allowed in Swiftui…with group you can add more. or use subviews…(would be cleaner code too)
Nested models does not work yet in SwiftUI, but you could do something like this class SubModel: ObservableObject { @Published var count = 0 } class AppModel: ObservableObject { @Published var submodel: SubModel = SubModel() var anyCancellable: AnyCancellable? = nil init() { anyCancellable = submodel.objectWillChange.sink { [weak self] (_) in self?.objectWillChange.send() } } } Basically … Read more