---
title: upstreamAffinity
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/nstextlayoutmanager/segmentoptions/upstreamaffinity
---

# upstreamAffinity

Returns the value that causes the framework to the place the segment based on the upstream affinity for an empty range.

## Declaration

```swift
static var upstreamAffinity: NSTextLayoutManager.SegmentOptions { get }
```

## See Also

### Getting segment options

- [headSegmentExtended](uikit/nstextlayoutmanager/segmentoptions/headsegmentextended.md)
- [middleFragmentsExcluded](uikit/nstextlayoutmanager/segmentoptions/middlefragmentsexcluded.md)
- [rangeNotRequired](uikit/nstextlayoutmanager/segmentoptions/rangenotrequired.md)
- [tailSegmentExtended](uikit/nstextlayoutmanager/segmentoptions/tailsegmentextended.md)
