updates to attributedstring

Asked on 2025-06-24

@wwdc24

1 search

The updates to AttributedString were discussed in several sessions at WWDC 2024. Here are some highlights:

  1. Text Highlighting in AppKit: In the session "What’s new in AppKit," a new texthighlight attribute was introduced for AttributedString. This attribute allows you to highlight text using the app's accent color or a custom color scheme. You can set this to system default to indicate that a range of text should be highlighted. What’s new in AppKit (09:42)

  2. Genmoji and Attributed Strings: In the session "Bring expression to your app with Genmoji," it was shown how AttributedString can be used to include image glyphs like Genmoji. This allows for rich text representation that can be serialized and deserialized easily. Bring expression to your app with Genmoji (04:09)

  3. Multilingual Apps: In "Build multilingual-ready apps," the use of color attributes in AttributedString was discussed as a way to highlight parts of text, which can be particularly useful in multilingual contexts. Build multilingual-ready apps (07:09)

These updates enhance the flexibility and functionality of AttributedString, allowing developers to create more expressive and visually appealing text content in their apps.