---
title: WKInterfaceObjectRepresentableContext
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/wkinterfaceobjectrepresentablecontext
---

# WKInterfaceObjectRepresentableContext

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

## Declaration

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

## Overview

Overview A 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 instance. Use the information in this structure to configure your object. Don’t create this structure yourself.

## Topics

### Coordinating interactions

- [coordinator](swiftui/wkinterfaceobjectrepresentablecontext/coordinator.md)
- [transaction](swiftui/wkinterfaceobjectrepresentablecontext/transaction.md)

### Getting the current environment data

- [environment](swiftui/wkinterfaceobjectrepresentablecontext/environment.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Adding WatchKit views to SwiftUI view hierarchies

- [WKInterfaceObjectRepresentable](swiftui/wkinterfaceobjectrepresentable.md)
