What is the equivalent of UIKit View's deinit for a SwiftUI view?
I have looked at .onDisappear... but, it does not seem to me that is the hook I should be using to know when a SwiftUI View is gone for good, for example during navigation etc...
What is the equivalent of UIKit View's deinit for a SwiftUI view?
I have looked at .onDisappear... but, it does not seem to me that is the hook I should be using to know when a SwiftUI View is gone for good, for example during navigation etc...