updates to attributedstring
Asked on 2025-06-24
•@wwdc241 search
The updates to AttributedString
were discussed in several sessions at WWDC 2024. Here are some highlights:
-
Text Highlighting in AppKit: In the session "What’s new in AppKit," a new
texthighlight
attribute was introduced forAttributedString
. 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) -
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) -
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.

Bring expression to your app with Genmoji
Discover how to bring Genmoji to life in your app. We’ll go over how to render, store, and communicate text that includes Genmoji. If your app features a custom text engine, we’ll also cover techniques for adding support for Genmoji.

Build a spatial drawing app with RealityKit
Harness the power of RealityKit through the process of building a spatial drawing app. As you create an eye-catching spatial experience that integrates RealityKit with ARKit and SwiftUI, you’ll explore how resources work in RealityKit and how to use features like low-level mesh and texture APIs to achieve fast updates of the users’ brush strokes.

What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and more.