---
title: SKSceneScaleMode.aspectFit
framework: spritekit
role: symbol
role_heading: Case
path: spritekit/skscenescalemode/aspectfit
---

# SKSceneScaleMode.aspectFit

The scaling factor of each dimension is calculated and the smaller of the two is chosen. Each axis of the scene is scaled by the same scaling factor. This guarantees that the entire scene is visible but may require letterboxing in the view.

## Declaration

```swift
case aspectFit
```

## Mentioned in

Scaling a Scene’s Content to Fit the View

## See Also

### Constants

- [SKSceneScaleMode.fill](spritekit/skscenescalemode/fill.md)
- [SKSceneScaleMode.aspectFill](spritekit/skscenescalemode/aspectfill.md)
- [SKSceneScaleMode.resizeFill](spritekit/skscenescalemode/resizefill.md)
