<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextSelectionManager/Delegate-swift.protocol/selectionManagerDidEndSelection(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextSelectionManagerDelegate(im)selectionManagerDidEndSelection:"
  },
  "title" : "selectionManagerDidEndSelection(_:)"
}
-->

# selectionManagerDidEndSelection(_:)

Tells the delegate that a selection gesture has ended.

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

## Parameters

`selectionManager`

The selection manager that ended selection.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)