endpoint
The endpoint for the visionOS device currently connected via Mac Virtual Display.
Declaration
@MainActor final var endpoint: SpatialPreviewEndpoint { get async throws }Discussion
Check isEndpointAvailable before accessing this property to avoid catching an ConnectedSpatialEndpointObserver.UnavailableError.