<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKScene/scaleMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKScene(py)scaleMode"
  },
  "title" : "scaleMode"
}
-->

# scaleMode

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

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

## 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`](/documentation/SpriteKit/SKSceneScaleMode). The default value is [`SKSceneScaleMode.fill`](/documentation/SpriteKit/SKSceneScaleMode/fill).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)