Contents

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

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 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

An array of text selections.

See Also

Working with text selections