---
title: scalesToFit
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/scalestofit
---

# scalesToFit

A Boolean value that indicates whether to scale the output to fit the configured width and height.

## Declaration

```swift
var scalesToFit: Bool { get set }
```

## Discussion

Discussion The system uses this value during independent window capture.

## See Also

### Specifying dimensions

- [width](screencapturekit/scstreamconfiguration/width.md)
- [height](screencapturekit/scstreamconfiguration/height.md)
- [sourceRect](screencapturekit/scstreamconfiguration/sourcerect.md)
- [destinationRect](screencapturekit/scstreamconfiguration/destinationrect.md)
- [preservesAspectRatio](screencapturekit/scstreamconfiguration/preservesaspectratio.md)
