Instance Property

backgroundColor

The background color of the scene.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
var backgroundColor: UIColor { get set }
macOS
var backgroundColor: NSColor { get set }

Discussion

The default value is a gray color (RGBA 0.15, 0.15, 0.15, 1.0).

See Also

Setting the Background Appearance

Creating a Scene with a Transparent Background

Set a transparent background color to show the content of the views below.

var view: SKView?

The view that is currently presenting the scene.