---
title: "updateWKInterfaceObject(_:context:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/wkinterfaceobjectrepresentable/updatewkinterfaceobject(_:context:)"
---

# updateWKInterfaceObject(_:context:)

Updates the presented WatchKit interface object (and its coordinator) to the latest configuration.

## Declaration

```swift
@MainActor @preconcurrency func updateWKInterfaceObject(_ wkInterfaceObject: Self.WKInterfaceObjectType, context: Self.Context)
```

## Parameters

- `wkInterfaceObject`: Your custom interface object.
- `context`: A context structure containing information about the current state of the system.

## Discussion

Discussion When the state of your app changes, SwiftUI updates the portions of your interface affected by those changes. SwiftUI calls this method for any changes affecting the corresponding interface object. Use this method to update the configuration of your object to match the new state information provided in the context parameter.

## See Also

### Creating and updating the interface object

- [makeWKInterfaceObject(context:)](swiftui/wkinterfaceobjectrepresentable/makewkinterfaceobject(context:).md)
- [WKInterfaceObjectRepresentable.Context](swiftui/wkinterfaceobjectrepresentable/context.md)
