---
title: isOpaque
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/canvas/isopaque
---

# isOpaque

A Boolean that indicates whether the canvas is fully opaque.

## Declaration

```swift
nonisolated var isOpaque: Bool { get set }
```

## Discussion

Discussion You might be able to improve performance by setting this value to true, making the canvas is fully opaque. However, in that case, the result of drawing a non-opaque image into the canvas is undefined.

## See Also

### Managing opacity and color

- [colorMode](swiftui/canvas/colormode.md)
