Can I use multiple text containers with TextKit 2?
Asked on 2024-07-29
1 search
Yes, you can use multiple text containers with TextKit 2. This is supported across various frameworks including SwiftUI, UIKit, and AppKit. TextKit 2 provides advanced text editing experiences and supports rich text by using attributed strings, which means it can handle multiple text containers effectively.
For more detailed information on how to implement this, you can refer to the session Get started with Writing Tools at the 04:23 mark, which discusses controlling behavior and customizing text views.

Get started with Dynamic Type
Dynamic Type lets people choose their preferred text size across the system and all of their apps. To help you get started supporting Dynamic Type, we’ll cover the fundamentals: How it works, how to find issues with scaling text in your app, and how to take practical steps using SwiftUI and UIKit to create a great Dynamic Type experience. We’ll also show how you can best use the Large Content Viewer to make navigation controls accessible to everyone.

Build multilingual-ready apps
Ensure your app works properly and effectively for multilingual users. Learn best practices for text input, display, search, and formatting. Get details on typing in multiple languages without switching between keyboards. And find out how the latest advances in the String Catalog can make localization even easier.

What’s new in UIKit
Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.
