<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TextSelectionAffinity/downstream",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21TextSelectionAffinityO10downstreamyA2CmF"
  },
  "title" : "TextSelectionAffinity.downstream"
}
-->

# TextSelectionAffinity.downstream

An downstream selection affinity. In this case, the cursor is associated
with the character immediately after it.

```
case downstream
```

## Discussion

In the context of our example `hello|مرحبا`, with a downstream affinity,
the cursor would be associated with the first character of “مرحبا”.
If you were to type in Arabic, the characters would be added before the “م”
in “مرحبا”, since Arabic is written right-to-left.

---

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)