---
title: ImageCropAndScaleAction.scaleToFit
framework: vision
role: symbol
role_heading: Case
path: vision/imagecropandscaleaction/scaletofit
---

# ImageCropAndScaleAction.scaleToFit

An action that scales to the size the algorithm requires while maintaining the original aspect ratio.

## Declaration

```swift
case scaleToFit
```

## See Also

### Getting the actions

- [ImageCropAndScaleAction.centerCrop](vision/imagecropandscaleaction/centercrop.md)
- [ImageCropAndScaleAction.scaleToFill](vision/imagecropandscaleaction/scaletofill.md)
- [ImageCropAndScaleAction.scaleToFitPlus90CCWRotation](vision/imagecropandscaleaction/scaletofitplus90ccwrotation.md)
- [ImageCropAndScaleAction.scaleToFillPlus90CCWRotation](vision/imagecropandscaleaction/scaletofillplus90ccwrotation.md)
