---
title: "mask(content:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartcontent/mask(content:)"
---

# mask(content:)

Masks chart content using the alpha channel of the specified content.

## Declaration

```swift
nonisolated func mask<C>(@ContentBuilder content: () -> C) -> some ChartContent where C : ChartContent

```

## Discussion

Discussion Parameter content: The content whose alpha will be applied to this item.

## See Also

### Masking and clipping

- [clipShape(_:style:)](charts/chartcontent/clipshape(_:style:).md)
