---
title: anchorPositionOffset
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextselection/anchorpositionoffset
---

# anchorPositionOffset

Represents the anchor position offset from the beginning of a line fragment in the visual order for the initial tap or click location.

## Declaration

```swift
var anchorPositionOffset: CGFloat { get set }
```

## Discussion

Discussion That starts from the left for a horizontal line fragment, and from the top for a vertical. Navigating between lines uses this point when the current line fragment associated with the selection is shorter than the next line visited. Defaults to 0.0.

## See Also

### Characteristics of a selection

- [affinity](uikit/nstextselection/affinity-swift.property.md)
- [NSTextSelection.Affinity](uikit/nstextselection/affinity-swift.enum.md)
- [granularity](uikit/nstextselection/granularity-swift.property.md)
- [NSTextSelection.Granularity](uikit/nstextselection/granularity-swift.enum.md)
- [isLogical](uikit/nstextselection/islogical.md)
- [isTransient](uikit/nstextselection/istransient.md)
- [secondarySelectionLocation](uikit/nstextselection/secondaryselectionlocation.md)
- [NSTextLocation](uikit/nstextlocation.md)
- [textRanges](uikit/nstextselection/textranges.md)
- [typingAttributes](uikit/nstextselection/typingattributes.md)
