<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/wantsDefaultClipping",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)wantsDefaultClipping"
  },
  "title" : "wantsDefaultClipping"
}
-->

# wantsDefaultClipping

A Boolean value indicating whether AppKit’s default clipping behavior is in effect.

```
var wantsDefaultClipping: Bool { get }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the default clipping is in effect, <doc://com.apple.documentation/documentation/Swift/false> otherwise. By default, this method returns <doc://com.apple.documentation/documentation/Swift/true>.

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>. When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, AppKit sets the current clipping region to the bounds of the view prior to calling that view’s [`draw(_:)`](/documentation/AppKit/NSView/draw(_:)) method. Subclasses may override this property and return <doc://com.apple.documentation/documentation/Swift/false> to suppress this default clipping behavior. You might do this to avoid the cost of setting up, enforcing, and cleaning up the clipping path. If you do change the value to <doc://com.apple.documentation/documentation/Swift/false>, you are responsible for doing your own clipping or constraining drawing appropriately. Failure to do so could the view to corrupt the contents of other views in the window.

---

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)