swift-formatstyle-macos
CommunitySimplify macOS UI value formatting with FormatStyle
Software Engineering#swift#macos#date formatting#locale-aware#formatstyle#ui formatting#custom formatters
AuthorLaughingJackalope
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: swift-formatstyle-macos Download link: https://github.com/LaughingJackalope/macos-skills/archive/main.zip#swift-formatstyle-macos Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.