<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions-swift.struct/videoZoomChanged",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions@AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionVideoZoomChanged"
  },
  "title" : "videoZoomChanged"
}
-->

# videoZoomChanged

Restrict switching to a fallback camera only when the device’s video zoom changes.

```
static var videoZoomChanged: AVCaptureDevice.PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { get }
```

## Discussion

This condition switches cameras when the video zoom factor changes, either by setting a value for the device’s [`videoZoomFactor`](/documentation/AVFoundation/AVCaptureDevice/videoZoomFactor) property or calling its [`ramp(toVideoZoomFactor:withRate:)`](/documentation/AVFoundation/AVCaptureDevice/ramp(toVideoZoomFactor:withRate:)) method.

> Note:
> All changes to video zoom factor allow switching to a fallback camera, not only those changes across switch-over zoom factors.

---

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)