@StateObject object store in global, and will not dealloc But it can be override and then call deinit.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: