---
title: "dismantleWKInterfaceObject(_:coordinator:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/wkinterfaceobjectrepresentable/dismantlewkinterfaceobject(_:coordinator:)"
---

# dismantleWKInterfaceObject(_:coordinator:)

Cleans up the presented WatchKit interface object (and its coordinator) in anticipation of their removal.

## Declaration

```swift
@MainActor @preconcurrency static func dismantleWKInterfaceObject(_ wkInterfaceObject: Self.WKInterfaceObjectType, coordinator: Self.Coordinator)
```

## Parameters

- `wkInterfaceObject`: Your custom interface 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.

## Discussion

Discussion Use this method to perform additional clean-up work related to your custom interface object. For example, you might use this method to remove observers or update other parts of your SwiftUI interface.
