---
title: cameraViewTransform
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimagepickercontroller/cameraviewtransform
---

# cameraViewTransform

The transform to apply to the camera’s preview image.

## Declaration

```swift
var cameraViewTransform: CGAffineTransform { get set }
```

## Discussion

Discussion This transform affects the live preview image only and does not affect your custom overlay view or the default image picker controls. You can use this property in conjunction with custom controls to implement your own electronic zoom behaviors. You can access this property only when the source type of the image picker is set to UIImagePickerController.SourceType.camera. Attempting to access this property for other source types results in the throwing of an invalidArgumentException exception.

## See Also

### Customizing the camera controls

- [Customizing an image picker controller](uikit/customizing-an-image-picker-controller.md)
- [showsCameraControls](uikit/uiimagepickercontroller/showscameracontrols.md)
- [cameraOverlayView](uikit/uiimagepickercontroller/cameraoverlayview.md)
