Uploaded June 2026 | Updated November 2026, 3 days ago
Discover how to combine the convenience of built-in text views with the control of TextKit. We’ll show you how new APIs make it easy to extend UITextView and NSTextView with custom behaviors like line numbers and collapsible sections. We’ll also explore the TextKit architecture and walk through new caching and reuse policies for text attachments. To get the most out of this session, watch “Meet TextKit 2” from WWDC21 and “What’s New in TextKit and text views” from WWDC22.
Explore related documentation, sample code, and more:
Enriching your text in text views: developer.apple.com/documentation/UIKit/enriching-your-text-in-text-views
TextKit: developer.apple.com/documentation/AppKit/textkit
Meet TextKit 2: developer.apple.com/videos/play/wwdc2021/10061
What's new in TextKit and text views: developer.apple.com/videos/play/wwdc2022/10090
Enhance the accessibility of your reading app: developer.apple.com/videos/play/wwdc2026/219
00:00 - Introduction
03:09 - TextKit architecture
09:17 - What's new in TextKit
11:27 - Extending framework text views
12:58 - Example: Code editor with line numbers
17:52 - Example: Collapsible recipe sections
19:56 - Text attachments and view provider reuse
23:00 - Next steps
More Apple Developer resources:
Video sessions: apple.co/VideoSessions
Documentation: apple.co/DeveloperDocs
Forums: apple.co/DeveloperForums
App: apple.co/DeveloperApp
Discover how to combine the convenience of built-in text views with the control of TextKit. We’ll show you how new APIs make it easy to extend UITextView and NSTextView with custom behaviors like line numbers and collapsible sections. We’ll also explore the TextKit architecture and walk through new caching and reuse policies for text attachments. To get the most out of this session, watch “Meet TextKit 2” from WWDC21 and “What’s New in TextKit and text views” from WWDC22.
Explore related documentation, sample code, and more:
Enriching your text in text views: developer.apple.com/documentation/UIKit/enriching-your-text-in-text-views
TextKit: developer.apple.com/documentation/AppKit/textkit
Meet TextKit 2: developer.apple.com/videos/play/wwdc2021/10061
What's new in TextKit and text views: developer.apple.com/videos/play/wwdc2022/10090
Enhance the accessibility of your reading app: developer.apple.com/videos/play/wwdc2026/219
00:00 - Introduction
03:09 - TextKit architecture
09:17 - What's new in TextKit
11:27 - Extending framework text views
12:58 - Example: Code editor with line numbers
17:52 - Example: Collapsible recipe sections
19:56 - Text attachments and view provider reuse
23:00 - Next steps
More Apple Developer resources:
Video sessions: apple.co/VideoSessions
Documentation: apple.co/DeveloperDocs
Forums: apple.co/DeveloperForums
App: apple.co/DeveloperApp










