Dear all,
I am struggling with using ObservableObject in my app. In principle things work fine only view updates are not trigger when changing attributes of 'contacts.' Using 'cnt' in the same way, updates are indeed reflected in views - is there something particular I have to do with the FtContacts class to fix that?
class AppEnv: ObservableObject {
@Published var contacts = [FtContact]()
@Published var cnt: Int = 0
[...]
struct ContentView: View {
@EnvironmentObject var appEnv: AppEnv
[...]
Any idea what I am missing here?
Thanks everybody
Only reference I have is what I read or what I noticed myself as issues with List.
Looks like List are not really mature or stabilized in SwiftUI.
That will come for sure.
In the meantime, may be worth file a bug, that may help to track the problems (even though I imagine they already have hundreds of simular reports).
So, thanks for the feedback, don't forget to mark the thread as closed.