Cleans up the presented AppKit view (and coordinator) in anticipation of their removal.
Required. Default implementation provided.
- macOS 10.15+
- Xcode 11.0+
Your custom view object.
The custom coordinator you use to communicate changes back to SwiftUI. If you do not use a custom coordinator instance, the system provides a default instance.
Use this method to perform additional clean-up work related to your custom view. For example, you might use this method to remove observers or update other parts of your SwiftUI interface.