Contents

scaleMode

A setting that defines how the scene is mapped to the view that presents it.

Declaration

var scaleMode: SKSceneScaleMode { get set }

Mentioned in

Discussion

It is possible for a scene’s size to differ from the size of the view it is presented in. The scale mode determines how the visible portion of the scene is mapped to the view. The possible values are listed in SKSceneScaleMode. The default value is SKSceneScaleMode.fill.

See Also

Stretching Content to Fit the View