<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/DesktopImageOptionKey/allowClipping",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSWorkspaceDesktopImageAllowClippingKey"
  },
  "title" : "allowClipping"
}
-->

# allowClipping

A key that contains the behavior to use when clipping the image.

```
static let allowClipping: NSWorkspace.DesktopImageOptionKey
```

## Discussion

The value is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> containing a Boolean, which affects the interpretation of Proportional scaling types. When the value is <doc://com.apple.documentation/documentation/Swift/false>, the workspace object makes the image fully visible, but it may include empty space on the sides or top and bottom. When the value is <doc://com.apple.documentation/documentation/Swift/true>, the image fills the entire screen, but may be clipped. If you don’t specify this key, the workspace assumes a value of <doc://com.apple.documentation/documentation/Swift/false>.  Non-proportional scaling types ignore this value.

---

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)