<!--
{
  "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/AVCaptureMovieFileOutput/isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureMovieFileOutput(py)primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled"
  },
  "title" : "isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled"
}
-->

# isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled

A Boolean value that indicates whether to restrict constituent device switching behavior during recording.

```
var isPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled: Bool { get set }
```

## Discussion

Use this property to enable camera switching restrictions when recording movies. You set restrictions by calling the output’s [`setPrimaryConstituentDeviceSwitchingBehaviorForRecording(_:restrictedSwitchingBehaviorConditions:)`](/documentation/AVFoundation/AVCaptureMovieFileOutput/setPrimaryConstituentDeviceSwitchingBehaviorForRecording(_:restrictedSwitchingBehaviorConditions:)) method. The restrictions take effect when you start recording, and revert to the behavior set by the capture device’s [`primaryConstituentDeviceSwitchingBehavior`](/documentation/AVFoundation/AVCaptureDevice/primaryConstituentDeviceSwitchingBehavior-swift.property) when you stop recording.

By default, this property is <doc://com.apple.documentation/documentation/Swift/true> when connected to a capture device that supports constituent device switching.

---

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)