<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBezierPath/clip(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBezierPath(cm)clipRect:"
  },
  "title" : "clip(_:)"
}
-->

# clip(_:)

Intersects the specified rectangle with the clipping path of the current graphics context and makes the resulting shape the current clipping path.

```
class func clip(_ rect: NSRect)
```

## Parameters

`rect`

The rectangle to intersect with the current clipping path.

## Discussion

---

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)