---
title: "intersects(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nstextrange/intersects(_:)"
---

# intersects(_:)

Determines if two ranges intersect.

## Declaration

```swift
func intersects(_ textRange: NSTextRange) -> Bool
```

## Parameters

- `textRange`: The range used to compare against the current range to evaluate for differences.

## Return Value

Return Value Returns true if the ranges intersect.

## See Also

### Comparing text ranges

- [intersection(_:)](uikit/nstextrange/intersection(_:).md)
- [isEqual(to:)](uikit/nstextrange/isequal(to:).md)
- [union(_:)](uikit/nstextrange/union(_:).md)
