---
title: "selectionManagerDidEndSelection(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextselectionmanager/delegate-swift.protocol/selectionmanagerdidendselection(_:)"
---

# selectionManagerDidEndSelection(_:)

Tells the delegate that a selection gesture has ended.

## Declaration

```swift
optional func selectionManagerDidEndSelection(_ selectionManager: NSTextSelectionManager)
```

## Parameters

- `selectionManager`: The selection manager that ended selection.

## Discussion

Discussion The selection manager calls this method after finishing processing a selection gesture, such as when the user releases the mouse button.
