Type Method 型メソッド

dismantleNSViewController(_:coordinator:)

Cleans up the presented view controller (and coordinator) in anticipation of its removal. 提示されたビューコントローラ(そしてコーディネータ)をそれの除去を見越してきれいに片付けます。

Declaration 宣言

static func dismantleNSViewController(_ nsViewController: Self.NSViewControllerType, coordinator: Self.Coordinator)

Parameters パラメータ

nsViewController

Your custom view controller object. あなたのあつらえのビューコントローラオブジェクト。

coordinator

The custom coordinator instance you use to communicate changes back to SwiftUI. If you do not use a custom coordinator, the system provides a default instance. あなたが変更を逆にSwiftUIへと伝えるために使用するあつらえのコーディネータインスタンス。あなたがあつらえのコーディネータを使わないならば、システムは省略時のインスタンスを提供します。

Discussion 議論

Use this method to perform additional clean-up work related to your custom view controller. For example, you might use this method to remove observers or update other parts of your SwiftUI interface. このメソッドを使って、あなたのあつらえのビューコントローラに関連する追加のクリーンアップ作業を実行してください。例えば、あなたはこのメソッドを使って、オブザーバを取り除いたり、あなたのSwiftUIインターフェイスの他の部分を更新したりするかもしれません。

Default Implementations 省略時実装

NSViewControllerRepresentable Implementations