<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/VNDocumentCameraViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "c:objc(cs)VNDocumentCameraViewController"
  },
  "title" : "VNDocumentCameraViewController"
}
-->

# VNDocumentCameraViewController

An object that presents UI for a camera pass-through that helps people scan physical documents.

```
class VNDocumentCameraViewController
```

## Overview

This class enables a person to scan a physical document, page by page, by tapping a camera interface in the controller’s view. The results of a scan include images, by page number. With the collection of scanned images, your app can create a digital version of the physical document and export the scanned images to PDF.

## Present a document scanning view controller in Swift

The following Swift code presents the document scanning object and adds it to your view controller hierarchy:

```swift
let documentCameraViewController = VNDocumentCameraViewController()
documentCameraViewController.delegate = self
present(documentCameraViewController, animated: true)
```

## Present a document scanning view controller in Objective-C

The following Objective-C code presents the document scanning object and adds it to your view controller hierarchy:

```objc
VNDocumentCameraViewController* documentCameraViewController = [[VNDocumentCameraViewController alloc] init];
documentCameraViewController.delegate = self;
[self presentViewController:documentCameraViewController animated:YES completion:nil];
```

## Topics

### Supporting the document camera

[`delegate`](/documentation/VisionKit/VNDocumentCameraViewController/delegate)

The delegate to be notified when the user saves or cancels the document scanner.

[`isSupported`](/documentation/VisionKit/VNDocumentCameraViewController/isSupported)

A Boolean variable that indicates whether or not the current device supports document scanning.



---

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)