---
title: DataScannerViewController.ScanningUnavailable.cameraRestricted
framework: visionkit
role: symbol
role_heading: Case
path: visionkit/datascannerviewcontroller/scanningunavailable/camerarestricted
---

# DataScannerViewController.ScanningUnavailable.cameraRestricted

The data scanner isn’t available due to user restrictions on the use of the camera.

## Declaration

```swift
case cameraRestricted
```

## See Also

### Unavailable errors

- [DataScannerViewController.ScanningUnavailable.unsupported](visionkit/datascannerviewcontroller/scanningunavailable/unsupported.md)
