---
title: UITextLoupeSession
framework: uikit
role: symbol
role_heading: Class
path: uikit/uitextloupesession
---

# UITextLoupeSession

An object that manages the presentation of the system magnifier at the location you specify.

## Declaration

```swift
@MainActor class UITextLoupeSession
```

## Mentioned in

Adopting system selection UI in custom text views

## Overview

Overview A UITextLoupeSession object programmatically displays the system loupe in your view. You might display this view to allow someone to magnify your view’s content. Typically, you display the loupe from a UIPanGestureRecognizer when someone interacts with your view. As the location in the gesture recognizer changes, use the loupe session object to update the position of the loupe.

## Topics

### Creating the loupe session

- [begin(at:fromSelectionWidgetView:in:)](uikit/uitextloupesession/begin(at:fromselectionwidgetview:in:).md)

### Updating the loupe during the session

- [move(to:withCaretRect:trackingCaret:)](uikit/uitextloupesession/move(to:withcaretrect:trackingcaret:).md)
- [invalidate()](uikit/uitextloupesession/invalidate().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Custom text selection

- [Adopting system selection UI in custom text views](uikit/adopting-system-selection-ui-in-custom-text-views.md)
- [UITextSelectionDisplayInteraction](uikit/uitextselectiondisplayinteraction.md)
- [UITextSelectionHighlightView](uikit/uitextselectionhighlightview.md)
- [UITextSelectionHandleView](uikit/uitextselectionhandleview.md)
- [UITextCursorView](uikit/uitextcursorview.md)
- [UIStandardTextCursorView](uikit/uistandardtextcursorview.md)
- [UITextCursorDropPositionAnimator](uikit/uitextcursordroppositionanimator.md)
