---
title: "foregroundStyle(_:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chart3dcontent/foregroundstyle(_:)-1pjaq"
---

# foregroundStyle(_:)

## Declaration

```swift
nonisolated func foregroundStyle(_ surfaceStyle: some Chart3DSurfaceStyle) -> some Chart3DContent

```
