Creating a Scene with a Transparent Background
Set a transparent background color to show the content of the views below.
Overview
To overlay content rendered with SpriteKit on top of another view, follow these steps:
- Set the scene’s
backgroundColorto clear. - Enable
allowsTransparencyon the view. - Set the view’s
backgroundColorto clear.