---
title: "setDrawsBackground(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qccompositionparameterview/setdrawsbackground(_:)"
---

# setDrawsBackground(_:)

Sets whether the composition parameter view draws its background.

## Declaration

```swift
func setDrawsBackground(_ flag: Bool)
```

## Parameters

- `flag`: doc://com.apple.documentation/documentation/Swift/true for the view to draw its background; otherwise doc://com.apple.documentation/documentation/Swift/false.

## See Also

### Managing Background Drawing

- [drawsBackground()](quartz/qccompositionparameterview/drawsbackground().md)
