---
title: wantsDefaultClipping
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/wantsdefaultclipping
---

# wantsDefaultClipping

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

## Declaration

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

## Return Value

Return Value true if the default clipping is in effect, false otherwise. By default, this method returns true.

## Discussion

Discussion The default value of this property is true. When the value of this property is true, AppKit sets the current clipping region to the bounds of the view prior to calling that view’s draw(_:) method. Subclasses may override this property and return 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 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.

## See Also

### Drawing the View’s Content

- [updateLayer()](appkit/nsview/updatelayer().md)
- [draw(_:)](appkit/nsview/draw(_:).md)
- [clipsToBounds](appkit/nsview/clipstobounds.md)
- [canDrawConcurrently](appkit/nsview/candrawconcurrently.md)
- [visibleRect](appkit/nsview/visiblerect.md)
- [getRectsBeingDrawn(_:count:)](appkit/nsview/getrectsbeingdrawn(_:count:).md)
- [needsToDraw(_:)](appkit/nsview/needstodraw(_:).md)
- [bitmapImageRepForCachingDisplay(in:)](appkit/nsview/bitmapimagerepforcachingdisplay(in:).md)
- [cacheDisplay(in:to:)](appkit/nsview/cachedisplay(in:to:).md)
- [NSBorderType](appkit/nsbordertype.md)
