---
title: "adjustingRanges(offset:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nstextcheckingresult/adjustingranges(offset:)"
---

# adjustingRanges(offset:)

Returns a new text checking result after adjusting the ranges as specified by the offset.

## Declaration

```swift
func adjustingRanges(offset: Int) -> NSTextCheckingResult
```

## Parameters

- `offset`: The amount the ranges are adjusted.

## Return Value

Return Value A new NSTextCheckingResult instance with the adjusted range or ranges.
