---
title: allowsTransparency
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skview/allowstransparency
---

# allowsTransparency

A Boolean property that indicates whether the view is rendered using transparency.

## Declaration

```swift
var allowsTransparency: Bool { get set }
```

## Mentioned in

Creating a Scene with a Transparent Background

## Discussion

Discussion This property tells the drawing system as to how it should treat the view. If set to false, the drawing system treats the view as fully opaque, which allows the drawing system to optimize some drawing operations and improve performance. If set to true, the drawing system composites the view normally with other content. The default value of this property is false. An opaque view is expected to fill its bounds with entirely opaque content—that is, the content should have an alpha value of 1.0. If the view is opaque and either does not fill its bounds or contains wholly or partially transparent content, the results are unpredictable. Always set the value of this property to false if the view is fully or partially transparent.

## See Also

### Configuring Performance Related Toggles

- [ignoresSiblingOrder](spritekit/skview/ignoressiblingorder.md)
- [shouldCullNonVisibleNodes](spritekit/skview/shouldcullnonvisiblenodes.md)
- [isAsynchronous](spritekit/skview/isasynchronous.md)
