<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhoto/sourceDeviceType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhoto(py)sourceDeviceType"
  },
  "title" : "sourceDeviceType"
}
-->

# sourceDeviceType

The type of device that captured the photo.

```
var sourceDeviceType: AVCaptureDevice.DeviceType? { get }
```

## Discussion

When you capture dual photos with a [`builtInDualCamera`](/documentation/AVFoundation/AVCaptureDevice/DeviceType-swift.struct/builtInDualCamera) device and the [`isDualCameraDualPhotoDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isDualCameraDualPhotoDeliveryEnabled) setting, use this property to determine which of the two resulting photo objects is from the [`builtInWideAngleCamera`](/documentation/AVFoundation/AVCaptureDevice/DeviceType-swift.struct/builtInWideAngleCamera) or [`builtInTelephotoCamera`](/documentation/AVFoundation/AVCaptureDevice/DeviceType-swift.struct/builtInTelephotoCamera) device.

For all other captures, this property’s value is equal to the [`deviceType`](/documentation/AVFoundation/AVCaptureDevice/deviceType-swift.property) property of the capture device to which the photo output is connected.

This property’s value can be `nil` if the [`AVCapturePhoto`](/documentation/AVFoundation/AVCapturePhoto) object did not come from an [`AVCaptureDevice`](/documentation/AVFoundation/AVCaptureDevice) capture.

---

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)