SwiftUI: deinit equivalent?

Viewed 713

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...

0 Answers
Related