---
title: NSView.LayerContentsPlacement.scaleProportionallyToFit
framework: appkit
role: symbol
role_heading: Case
path: appkit/nsview/layercontentsplacement-swift.enum/scaleproportionallytofit
---

# NSView.LayerContentsPlacement.scaleProportionallyToFit

The content is resized to fit the bounds rectangle, preserving the aspect of the content. If the content does not completely fill the bounds rectangle, the content is centered in the partial axis.

## Declaration

```swift
case scaleProportionallyToFit
```

## See Also

### Constants

- [NSView.LayerContentsPlacement.scaleAxesIndependently](appkit/nsview/layercontentsplacement-swift.enum/scaleaxesindependently.md)
- [NSView.LayerContentsPlacement.scaleProportionallyToFill](appkit/nsview/layercontentsplacement-swift.enum/scaleproportionallytofill.md)
- [NSView.LayerContentsPlacement.center](appkit/nsview/layercontentsplacement-swift.enum/center.md)
- [NSView.LayerContentsPlacement.top](appkit/nsview/layercontentsplacement-swift.enum/top.md)
- [NSView.LayerContentsPlacement.topRight](appkit/nsview/layercontentsplacement-swift.enum/topright.md)
- [NSView.LayerContentsPlacement.right](appkit/nsview/layercontentsplacement-swift.enum/right.md)
- [NSView.LayerContentsPlacement.bottomRight](appkit/nsview/layercontentsplacement-swift.enum/bottomright.md)
- [NSView.LayerContentsPlacement.bottom](appkit/nsview/layercontentsplacement-swift.enum/bottom.md)
- [NSView.LayerContentsPlacement.bottomLeft](appkit/nsview/layercontentsplacement-swift.enum/bottomleft.md)
- [NSView.LayerContentsPlacement.left](appkit/nsview/layercontentsplacement-swift.enum/left.md)
- [NSView.LayerContentsPlacement.topLeft](appkit/nsview/layercontentsplacement-swift.enum/topleft.md)
