---
title: "boundingRegion(for:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/documentobservation/container/text-swift.struct/boundingregion(for:)"
---

# boundingRegion(for:)

Calculates a bounding region around the range of characters within a string.

## Declaration

```swift
func boundingRegion(for range: Range<String.Index>) -> NormalizedRegion?
```

## Parameters

- `range`: An interval for the amount of characters within the text string.
