---
title: "compositingLayer(style:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/axiscontent/compositinglayer(style:)"
---

# compositingLayer(style:)

Creates a compositing layer for the axis content, and apply view modifiers to the compositing layer.

## Declaration

```swift
func compositingLayer<V>(@ViewBuilder style: (PlaceholderContentView<Self>) -> V) -> some AxisContent where V : View

```

## Parameters

- `style`: A closure that applies view modifiers to the compositing layer.
