<!--
{
  "availability" : [
    "iOS: 3.1.0 -",
    "iPadOS: 3.1.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImagePickerController/cameraViewTransform",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImagePickerController(py)cameraViewTransform"
  },
  "title" : "cameraViewTransform"
}
-->

# cameraViewTransform

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

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

## 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`](/documentation/UIKit/UIImagePickerController/SourceType-swift.enum/camera). Attempting to access this property for other source types results in the throwing of an <doc://com.apple.documentation/documentation/Foundation/NSExceptionName/invalidArgumentException> exception.

---

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)