Apple Text Selection & Menus
Customizes selection UI, edit menus, and gesture interactions for UIKit and AppKit text views.
This skill provides specialized guidance for tailoring the interaction layer of standard Apple text views like UITextView and NSTextView. It helps developers implement modern iOS 17+ text item interactions, manage complex edit menu configurations via UIEditMenuInteraction, and coordinate gesture recognizers to prevent system conflicts. It is ideal for developers who need to add custom actions to links, attachments, or specific text ranges while maintaining the performance and accessibility of stock system components without building a text engine from scratch.
主な機能
01Advanced text item handling for links, attachments, and custom tags
02Migration guidance from deprecated UIMenuController to modern APIs
03Implementation of modern UIEditMenuInteraction for contextual menus
04Fine-grained control over cursor appearance and selection constraints
05Gesture coordination to resolve conflicts with system text recognizers
060 GitHub stars
ユースケース
01Adding custom actions like 'View Profile' or 'Define' to the standard iOS edit menu
02Making specific text ranges interactive without applying link-style coloring using UITextItem tags
03Preventing users from selecting or editing specific protected regions within a text document