<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutManager/SegmentOptions/upstreamAffinity",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextLayoutManagerSegmentOptions@NSTextLayoutManagerSegmentOptionsUpstreamAffinity"
  },
  "title" : "upstreamAffinity"
}
-->

# upstreamAffinity

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)