SwiftUI: StateObject vs ObservableObject
How new StateObject is different than ObservableObject?
Apple introduced a new property wrapper for iOS-14 named StateObject. This new property wrapper suppose to use if the object is being created inside of view Struct.
SwiftUI’s Views consider that an ObservableObject will always be referenced by some outside class, As SwiftUI’s view are struct. An ObservableObject has possibility to getting deallocate and reinitialized.