WWDC 2023: What’s new with text and text interactions
Find hereafter a detailed summary of a video that belongs to a taxonomy of some WWDC footages.
The original video is available on the Apple official website (session 10058).
"Text is an absolutely critical component of every app. Discover the latest features and enhancements for creating rich text experiences on Apple platforms. We'll show you how to take advantage of common text elements and create entirely custom interactions for your app. Learn about updates to dictation, text loupe, and text selection, and explore improvements to text clipping, line wrapping, and hyphenation."
Hereafter, the underlined elements lead directly to the playback of the WWDC video at the appropriate moment.
Selection UI #
Improvements have been made for selection
UI
through the text cursor and the loupe.
Item actions & menus #
Besides the well known item actions, tagging a range for a text interaction is now supported by a text item.
Then, few lines of code give rise to a menu display via a link inside a UITextView
.
Lists & bullets #
Dictation #
The dictation indicator has a brand new appearance and behavior on macOS 14
.
The macOS Sonoma
selection UI
provides an iOS 17
approach through a new API
.
The glow effect animation is totally under control via a line of code...
... just like the input modes placement for the language selection UI
.
Finally, there's a scroll-away indicator to suggest a shift from the relative position of the cursor towards the dictation point.
Internationalization #
The dynamic line-height adjustement has been improved for the standard text elements in order to prevent some common clipping issues.
Some piece of advice should be followed so as to highlight this line-height adjustment for iOS 17
.
Finally, enhancements have been provided regarding wrapping and hyphenation in some languages.