Apple Text Attribute Keys Reference

0•

Catalogs NSAttributedString keys, value types, and rendering compatibility across SwiftUI, UIKit, and AppKit.

This skill provides an expert reference for the complex world of Apple's rich text attributes, covering NSAttributedString.Key values and their associated value types. It helps developers navigate the empirical differences in how rich text renders across SwiftUI, UIKit (TextKit 1/2), and AppKit, offering a detailed compatibility matrix and troubleshooting for common issues like 'invisible' dark mode text or ignored links. By detailing typography, decoration, and paragraph styling rules, it ensures that your application's rich text remains consistent and functional across the entire Apple ecosystem.

Key Features

01Empirical view-compatibility matrix for SwiftUI, UIKit, and AppKit
02RTF round-trip persistence and attribute loss documentation
03Paragraph style and list formatting reference for iOS and macOS
040 GitHub stars
05Detailed implementation guides for typography, strokes, and shadows
06Comprehensive NSAttributedString.Key catalog with value type mappings

Use Cases

01Verifying attribute compatibility when porting text logic between iOS and macOS
02Debugging why specific rich text attributes are failing to render in SwiftUI
03Correctly implementing complex paragraph styling and line-breaking logic