updateWKInterfaceObject(_:context:)
Updates the presented WatchKit interface object (and its coordinator) to the latest configuration.
Declaration
@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.