---
title: mainWindowFrame
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedeskviewapplication/launchconfiguration/mainwindowframe
---

# mainWindowFrame

The frame for Desk View after it launches.

## Declaration

```swift
var mainWindowFrame: CGRect { get set }
```

## Discussion

Discussion The default value is zero, which tells the system to use the previously set frame. The system uses global screen coordinates to display the frame. When Desk View launches from a native macOS app, the window origin is bottom-left. When it launches from a Mac Catalyst app, the window origin is top-left.

## See Also

### Customizing the presentation

- [requiresSetUpModeCompletion](avfoundation/avcapturedeskviewapplication/launchconfiguration/requiressetupmodecompletion.md)
