<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WKInterfaceObjectRepresentableContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI37WKInterfaceObjectRepresentableContextV"
  },
  "title" : "WKInterfaceObjectRepresentableContext"
}
-->

# WKInterfaceObjectRepresentableContext

Contextual information about the state of the system that you use to create
and update your WatchKit interface object.

```
@MainActor @preconcurrency struct WKInterfaceObjectRepresentableContext<Representable> where Representable : WKInterfaceObjectRepresentable
```

## Overview

A [`WKInterfaceObjectRepresentableContext`](/documentation/SwiftUI/WKInterfaceObjectRepresentableContext) structure contains details about
the current state of the system. When creating and updating your interface
objects, the system creates one of these structures and passes it to the
appropriate method of your custom [`WKInterfaceObjectRepresentable`](/documentation/SwiftUI/WKInterfaceObjectRepresentable)
instance. Use the information in this structure to configure your object.
Don’t create this structure yourself.

## Topics

### Coordinating interactions

[`let coordinator: Representable.Coordinator`](/documentation/SwiftUI/WKInterfaceObjectRepresentableContext/coordinator)

The view’s associated coordinator.

[`var transaction: Transaction`](/documentation/SwiftUI/WKInterfaceObjectRepresentableContext/transaction)

The current transaction.

### Getting the current environment data

[`var environment: EnvironmentValues`](/documentation/SwiftUI/WKInterfaceObjectRepresentableContext/environment)

The current environment.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)