---
title: scaleMode
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skscene/scalemode
---

# scaleMode

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

## Declaration

```swift
var scaleMode: SKSceneScaleMode { get set }
```

## Mentioned in

Scaling a Scene’s Content to Fit the View

## Discussion

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

- [Scaling a Scene’s Content to Fit the View](spritekit/scaling-a-scene-s-content-to-fit-the-view.md)
- [SKSceneScaleMode](spritekit/skscenescalemode.md)
