---
title: "textSelections(interactingAt:inContainerAt:anchors:modifiers:selecting:bounds:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextselectionnavigation/textselections(interactingat:incontainerat:anchors:modifiers:selecting:bounds:)"
---

# textSelections(interactingAt:inContainerAt:anchors:modifiers:selecting:bounds:)

Returns an array of text selections produced by a tap or click at the point you specify.

## Declaration

```swift
func textSelections(interactingAt point: CGPoint, inContainerAt containerLocation: any NSTextLocation, anchors: [NSTextSelection], modifiers: NSTextSelectionNavigation.Modifier, selecting: Bool, bounds: CGRect) -> [NSTextSelection]
```

## Parameters

- `point`: A CGPoint that represents the location of the tap or click.
- `containerLocation`: A NSTextLocation that describes the contasiner location.
- `anchors`: An array of NSTextSelection objects.
- `modifiers`: One or more doc://com.apple.appkit/documentation/AppKit/NSTextSelectionNavigation/Modifier options.
- `selecting`: A Boolean value that indicates if the selection is in drag session.
- `bounds`: A CGRect that defines the view area in the container’s coordinate system that can interact with events.

## Return Value

Return Value An array of text selections.

## See Also

### Working with text selections

- [textSelection(for:enclosing:)](appkit/nstextselectionnavigation/textselection(for:enclosing:).md)
- [destinationSelection(for:direction:destination:extending:confined:)](appkit/nstextselectionnavigation/destinationselection(for:direction:destination:extending:confined:).md)
