Combine makes it easy to take an object, observe changes to its properties and react to those changes, in SwiftUI.
This is a companion discussion topic for the original entry at https://www.kodeco.com/37678937-swiftui-fundamentals/lessons/16
Combine makes it easy to take an object, observe changes to its properties and react to those changes, in SwiftUI.
Hi, I was just watching the video about observable objects, noticed you instantiated an object as observed object and passed its reference to child views and also used observedObjects. Would it be better to have instantiated it as StateObject?