text predictions

Generated on 8/14/2024

1 search

Apple's WWDC 2024 introduced several enhancements related to text predictions and writing tools across its platforms. Here are some key highlights:

  1. Text Entry Suggestions in AppKit: A new API allows apps to provide custom text entry suggestions in a standardized menu. This feature is available in macOS Sequoia and works with any NSTextField, including subclasses like NSSearchField. The suggestions can be provided both synchronously and asynchronously, and the API allows for customization of text completions on highlight and selection. What’s new in AppKit.

  2. Writing Tools: Apple introduced system-wide writing tools that help users rewrite, proofread, and summarize text. These tools are integrated into standard UI frameworks, and apps using UITextView, NSTextView, or WKWebView can automatically leverage these features. The tools support rich text and allow for list and table transformations. Developers can customize the behavior of writing tools using new delegate methods and properties. Get started with Writing Tools.

  3. Enhanced Suggestions for Journaling Apps: The session on journaling apps discussed how to handle new reflection suggestions, which can be used to enhance expressive writing experiences. This involves leveraging the prompt property to display suggestions with appropriate background and foreground colors. Enhanced suggestions for your journaling app.

These features are part of Apple's ongoing efforts to integrate more intelligent and user-friendly text processing capabilities into their platforms, enhancing both developer and user experiences.