---
title: documentRegion
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/datadetector/options/documentregion
---

# documentRegion

A locale region that’s relevant to the scanned string.

## Declaration

```swift
var documentRegion: Locale.Region?
```

## Discussion

Discussion Set documentRegion to the region relevant to the scanned string, if any. important: Only set this value if you know it with a high degree of confidence; otherwise, set to nil.

## See Also

### Hints you can provide to add more context for the matching process

- [documentDate](datadetection/datadetector/options/documentdate.md)
- [documentLanguageCode](datadetection/datadetector/options/documentlanguagecode.md)
- [documentTimeZone](datadetection/datadetector/options/documenttimezone.md)
