macos-text-and-input - Build macOS TextKit 2 Editors
Guides rich-text editing, text input handling, search, font panels, and SwiftUI integration with TextKit 2 on macOS.
Tags
Updated: 2026-11-08Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure TextKit 2 pipelines
- Set up NSTextView editing
- Edit attributed strings
- Embed text attachments
- Integrate NSTextFinder search
- Handle keyboard input
- Integrate the font panel
- Wrap NSTextView for SwiftUI
Inputs
- Text content
- Rich-text attributes
- Search queries
- Keyboard events
- Editor configuration
- Font settings
Outputs
- Configured NSTextView editor
- Attributed text state
- Find bar interactions
- Handled keyboard input
- SwiftUI text-view wrapper
Requirements
- macOS 26 or later
- Swift 6.3
- AppKit framework
- SwiftUI framework for integration
