Jul 1, 2023
This is very bad advice. Your example will cause DataManager to be recreated and lose internal state whenever a parent view is reevaluated due to a state change.
ObservedObject should only be used when someone else is maintaining a reference to the object in question.
See: https://betterprogramming.pub/swiftui-the-unsafeobservedobject-quiz-467bb8554262