Contents

WKInterfaceObjectRepresentableContext

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

Declaration

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

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

Getting the current environment data

See Also

Adding WatchKit views to SwiftUI view hierarchies