what's new with bidirectional text?

Asked on 06/11/2025

1 search

At WWDC 2025, Apple introduced several advancements in handling bidirectional text, particularly in the session titled "Enhance your app’s multilingual experience." Here are some of the key updates:

  1. Dynamic Writing Direction: The writing direction is now dynamically determined based on the content of the text. This means that as more text in a right-to-left (RTL) language like Urdu is typed, the writing direction will automatically adjust to RTL, enhancing the multilingual experience in apps using Apple-provided text views and text fields.

  2. Natural Selection: iOS 26 introduces a new property called selectedRanges to represent an array of non-contiguous NS ranges, replacing the older single selected range property. This change allows for more natural text selection in bidirectional text, where the selection can follow the cursor naturally without visible gaps.

  3. TextKit 2 Enhancements: TextKit 2 seamlessly manages bidirectional text, providing more control over layout and styling, ensuring that text looks correct regardless of the language.

For more detailed information, you can refer to the session Enhance your app’s multilingual experience (09:29) where these updates are discussed.