---
title: preservesAspectRatio
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/preservesaspectratio
---

# preservesAspectRatio

A Boolean value that determines if the stream preserves aspect ratio.

## Declaration

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

## Discussion

Discussion The default value is true.

## See Also

### Specifying dimensions

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