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
backgroundColor
to clear. - Enable
allowsTransparency
on the view. - Set the view’s
backgroundColor
to clear.