@StateObject Vs @ObservedObject, What are the key differences and when to use what?
ObservedObject are like
Binding, but for class objects. Use
StateObject when you want a single object that persists across view refreshes. Use
ObservedObject if you want a new object each time.