---
title: addClip()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uibezierpath/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.

## Declaration

```swift
func addClip()
```

## Discussion

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 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 restoreGState() function. The usesEvenOddFillRule property is used to determine whether the even-odd or non-zero rule is used to determine the area enclosed by the path.
