---
title: endFloatingCursor()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uitextinput/endfloatingcursor()
---

# endFloatingCursor()

Tells the object when the gesture that the system uses to manipulate the cursor ends.

## Declaration

```swift
optional func endFloatingCursor()
```

## Discussion

Discussion UIKit calls this method at the end of the two-finger pan gesture used to pick up the cursor. You can use this method to clean up the visual state of your text view. If you do not implement this method, UIKit provides visual feedback only when the selection changes.

## See Also

### Managing the floating cursor

- [beginFloatingCursor(at:)](uikit/uitextinput/beginfloatingcursor(at:).md)
- [updateFloatingCursor(at:)](uikit/uitextinput/updatefloatingcursor(at:).md)
