How do I support Resume?
Asked on 2024-07-30
1 search
To support the "Resume" functionality in your app, you can follow these steps:
-
Implement Delegate Methods: Use the new delegate methods introduced for writing tools in
UITextVieworNSTextView. Specifically, you can use thewritingToolsViewDidBeginandwritingToolsViewDidEndmethods to manage your app's state during a writing tools session. For example, you might want to pause syncing or other operations that could interfere with text editing. -
Use the
isWritingToolsActiveProperty: This property helps you determine if writing tools are currently active. You can use this to conditionally handle text operations in your app. -
Handle Long Text: When dealing with long text, the rewritten text may be delivered in chunks. Ensure your app can handle these chunks appropriately, possibly by applying animations to indicate processing.
For more detailed information, you can refer to the session Get started with Writing Tools at the timestamp 05:12.
Relevant Sessions
If you need more specific details or have other questions, feel free to ask!

Enhanced suggestions for your journaling app
Find out how your journaling app can display journaling suggestions with richer content from the system. Explore new types of available content like state of mind data, reflection prompts, and support for third-party media content and motion-based activities.

Evolve your document launch experience
Make your document-based app stand out, and bring its unique identity into focus with the new document launch experience. Learn how to leverage the new API to customize the first screen people see when they launch your app. Utilize the new system-provided design, and amend it with custom actions, delightful decorative views, and impressive animations.

Enhance ad experiences with HLS interstitials
Explore how HLS Interstitials can help you seamlessly insert advertisements into your HLS content. We’ll also show you how to use integrated timeline to tune your UI experience and build SharePlay for interstitials.
