<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBezierPath/addClip()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBezierPath(im)addClip"
  },
  "title" : "addClip()"
}
-->

# addClip()

Uses the clipping path of the current graphics context to intersect the region that the path encloses, and makes the resulting shape the current clipping path.

```
func addClip()
```

## Discussion

This method modifies the visible drawing area of the current graphics context. After calling it, subsequent drawing operations result in rendered content only if they occur within the fill area of the specified path.

> Important:
> If you need to remove the clipping region to perform subsequent drawing operations, you must save the current graphics state (using the <doc://com.apple.documentation/documentation/CoreGraphics/CGContext/saveGState()> function) before calling this method. When you no longer need the clipping region, you can then restore the previous drawing properties and clipping region using the <doc://com.apple.documentation/documentation/CoreGraphics/CGContext/restoreGState()> function.

The [`usesEvenOddFillRule`](/documentation/UIKit/UIBezierPath/usesEvenOddFillRule) property is used to determine whether the even-odd or non-zero rule is used to determine the area enclosed by the path.

---

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)