---
title: "clipShape(_:style:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartcontent/clipshape(_:style:)"
---

# clipShape(_:style:)

Sets a clip shape for the chart content.

## Declaration

```swift
nonisolated func clipShape(_ shape: some Shape, style: FillStyle = FillStyle()) -> some ChartContent

```

## Parameters

- `shape`: The clip shape. The shape fills each mark’s frame.
- `style`: The fill to use when rasterizing the shape.

## See Also

### Masking and clipping

- [mask(content:)](charts/chartcontent/mask(content:).md)
