<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 16.1.0 -",
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDeskViewApplication/LaunchConfiguration/mainWindowFrame",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDeskViewApplicationLaunchConfiguration(py)mainWindowFrame"
  },
  "title" : "mainWindowFrame"
}
-->

# mainWindowFrame

The frame for Desk View after it launches.

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

## Discussion

The default value is <doc://com.apple.documentation/documentation/CoreFoundation/CGRect/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 <doc://com.apple.documentation/documentation/UIKit/mac-catalyst> app, the window origin is top-left.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)