<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/dynamicAspectRatio",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)dynamicAspectRatio"
  },
  "title" : "dynamicAspectRatio"
}
-->

# dynamicAspectRatio

A key-value observable property indicating the current aspect ratio for a device.

```
var dynamicAspectRatio: AVCaptureDevice.AspectRatio? { get }
```

## Discussion

This property is initialized to the first [`AVCaptureDevice.AspectRatio`](/documentation/AVFoundation/AVCaptureDevice/AspectRatio) listed in the device’s activeFormat’s [`supportedDynamicAspectRatios`](/documentation/AVFoundation/AVCaptureDevice/Format/supportedDynamicAspectRatios) property. If the activeFormat’s [`supportedDynamicAspectRatios`](/documentation/AVFoundation/AVCaptureDevice/Format/supportedDynamicAspectRatios) is an empty array, this property returns nil.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)