---
title: secondarySelectionLocation
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextselection/secondaryselectionlocation
---

# secondarySelectionLocation

Specifies the secondary character location when user taps or clicks at a directional boundary.

## Declaration

```swift
var secondarySelectionLocation: (any NSTextLocation)? { get set }
```

## Discussion

Discussion Setting a non-nil location has a side effect of making isLogical to false.

## See Also

### Characteristics of a selection

- [affinity](uikit/nstextselection/affinity-swift.property.md)
- [NSTextSelection.Affinity](uikit/nstextselection/affinity-swift.enum.md)
- [anchorPositionOffset](uikit/nstextselection/anchorpositionoffset.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)
- [NSTextLocation](uikit/nstextlocation.md)
- [textRanges](uikit/nstextselection/textranges.md)
- [typingAttributes](uikit/nstextselection/typingattributes.md)
