---
title: enabled
framework: vision
role: symbol
role_heading: Instance Property
path: vision/recognizedocumentsrequest/barcodedetectionoptions-swift.struct/enabled
---

# enabled

Boolean value that indicates whether to detect barcodes in the document.

## Declaration

```swift
var enabled: Bool
```

## Discussion

Discussion The value is unavailable by default. To enable barcode detection, set the property value to true.

## See Also

### Getting the symbology

- [coalesceCompositeSymbologies](vision/recognizedocumentsrequest/barcodedetectionoptions-swift.struct/coalescecompositesymbologies.md)
- [symbologies](vision/recognizedocumentsrequest/barcodedetectionoptions-swift.struct/symbologies.md)
