apple-text-interaction

Customize iOS text editor interactions with UIEditMenuInteraction and UITextItem.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sitapix/apple-text --skill apple-text-interaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apple-text-interaction
Source: https://github.com/sitapix/apple-text/tree/main/skills/apple-text-interaction
Command: npx skills add https://github.com/sitapix/apple-text --skill apple-text-interaction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Customizing text interaction behavior in text editors, including selection, context menus, link taps, gestures, and cursor appearance, to match specific UX requirements.

Core Features & Use Cases

  • UIEditMenuInteraction enables replacing the system edit menu with custom actions and items.
  • UITextItem Interactions (iOS 17+) for precise taps, long-presses, and tagging of ranges for links, attachments, and custom content.
  • UITextInteraction integration lets you add text interaction to any UIView that implements UITextInput.
  • Cursor and Selection Customization allows changing cursor color, selection behavior, and related gestures to fit app design.
  • Gesture Handling & Delegation demonstrates blocking or steering system gestures and implementing interaction delegates.

Quick Start

Initialize a custom editor and apply UIEditMenuInteraction to customize the edit menu and gestures.

Frequently Asked Questions about apple-text-interaction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize the text selection and edit menu in a UITextView on iOS?

Customize text selection and the edit menu in a UITextView by applying UIEditMenuInteraction to replace system actions with custom items, and adjusting cursor and selection gestures to match your specific UX design.

Can I add custom context menu items to an iOS text editor?

You can add custom context menu items to an iOS text editor by initializing a custom editor and applying UIEditMenuInteraction to replace the default system edit menu with your custom actions.

Does UITextInteraction support adding text interactions to a custom UIView?

UITextInteraction supports adding text interactions to any custom UIView that implements the UITextInput protocol, using the interaction delegate protocol to ensure correct integration and gesture handling.

How do UITextItem interactions handle link taps and long-presses in iOS 17?

UITextItem interactions in iOS 17 handle link taps and long-presses by allowing precise tagging of specific text ranges for links, attachments, and custom content within your text editor.

What is the best way to block or steer system text selection gestures in UITextView?

Block or steer system text selection gestures in UITextView by implementing interaction delegates and gesture handling logic to override default selection behaviors and cursor appearances.

Can I change the text cursor color and selection behavior in an iOS text editor?

Change the text cursor color and selection behavior in an iOS text editor through cursor and selection customization features that adjust these visual elements to fit your app design requirements.