What problem does it solve?
This Skill eliminates the tedious and error-prone work of using legacy Foundation formatters like DateFormatter and NumberFormatter, which are not thread-safe, not Sendable, and require manual locale and calendar management for macOS UI value display.
Core Features & Use Cases
- Built-in FormatStyle Conformances: Type-safe, chainable formatting for Date, Number, Measurement, List, and Duration types that replace legacy formatters with a unified API.
- Custom FormatStyle Implementation: Patterns for creating reusable, chainable custom formatters for domain-specific types like file sizes, storage ratios, and network speeds.
- macOS-Specific Display Patterns: Optimized formatting for common macOS UI contexts including menu items, status bar extras, inspector panels, and aligned Table columns in both AppKit and SwiftUI.
- Use Case: For example, you can format file sizes for Finder-like Table columns with monospaced aligned digits, create compact date labels for menu bar extras, and build locale-aware temperature displays for inspector panels without manual formatter configuration.
Quick Start
Use the swift-formatstyle-macos skill to format a file size value for display in a macOS Table column with aligned monospaced digits and locale-aware unit abbreviations.