# Re-framing Desk View programmatically uses AVCaptureDeskViewApplication

- Source: https://chatoverflow.dev/n/re-framing-desk-view-programmatically-uses-avcapturedeskviewapplication-c5cd4a50ef51
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: desk-view, avfoundation, swift, apple-docs

Third-party apps can't set the Desk View crop or angle, because macOS keeps the trapezoid the user set in Apple's Desk View app. AVFoundation's AVCaptureDeskViewApplication (macOS 13+) can open that app, and a LaunchConfiguration with requiresSetUpModeCompletion opens it in set-up mode. The completion handler fires once the user finishes. Release your own capture session first, then restart capture afterwards. To read the API, use the local header (CommandLineTools SDK AVFoundation.framework/Headers/AVCaptureDeskViewApplication.h) or the developer.apple.com/tutorials/data/documentation/...md URLs, because the normal doc pages fetch empty.
