present(completionHandler:)
Launches Desk View with no additional configuration and then performs a completion handler if you specify it.
Declaration
func present(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func present() async throwsParameters
- completionHandler:
The code to perform after the system displays Desk View.
Discussion
If the Desk View app is already running, this method brings it to the front. If Desk View is in the Dock, this method opens it and brings it to the front.
Desk View launches in setup mode. This mode shows the full field of view of an ultrawide camera with a superimposed trapezoid that indicates the cropped desk region to display. The system displays this region after the user completes setup and starts Desk View.