<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WKInterfaceObjectRepresentable/updateWKInterfaceObject(_:context:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI30WKInterfaceObjectRepresentableP06updatecD0_7contexty0cD4TypeQz_AA0cdE7ContextVyxGtF"
  },
  "title" : "updateWKInterfaceObject(_:context:)"
}
-->

# updateWKInterfaceObject(_:context:)

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

```
@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

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)