---
title: isVirtualDevice
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/isvirtualdevice
---

# isVirtualDevice

A Boolean value that indicates whether the device consists of two or more physical devices.

## Declaration

```swift
var isVirtualDevice: Bool { get }
```

## Discussion

Discussion Examples of virtual devices are: The dual camera, which supports seamless switching between wide-angle and telephoto cameras while zooming and generating depth data from the disparities between the points of view of the physical cameras. The TrueDepth camera, which generates depth data from disparities between YUV and infrared cameras pointed in the same direction.

## See Also

### Inspecting device characteristics

- [constituentDevices](avfoundation/avcapturedevice/constituentdevices.md)
- [hasMediaType(_:)](avfoundation/avcapturedevice/hasmediatype(_:).md)
- [transportType](avfoundation/avcapturedevice/transporttype.md)
- [supportsSessionPreset(_:)](avfoundation/avcapturedevice/supportssessionpreset(_:).md)
