---
title: TextSelectionAffinity.downstream
framework: swiftui
role: symbol
role_heading: Case
path: swiftui/textselectionaffinity/downstream
---

# TextSelectionAffinity.downstream

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

## Declaration

```swift
case downstream
```

## Discussion

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.
