
Swift Formatstyle
FormatStyle is Swift's modern, type-safe replacement for the old Formatter classes, and this skill covers the full range: numbers, currency, percentages, dates, durations, measurements, person names, lists, byte counts, and URLs. The quick reference table alone will save you digging through documentation every time you need to format a currency or a relative date. What stands out is the focus on locale awareness as an i18n concern even in single-language apps, with a clear boundary drawn between FormatStyle mechanics and broader localization work. The custom FormatStyle section shows you how to build your own conformances when the built-in types don't fit. Duration formatting requires iOS 16+, but everything else works from iOS 15 onward.
- skills.sh installs
- 2.8K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill swift-formatstyle --agent claude-codeInstalls into .claude/skills of the current project.
Files
Swift FormatStyle
Use Foundation's type-safe FormatStyle APIs for user-facing display and ParseableFormatStyle when the same convention must accept input. Route String Catalogs, plurals, localized copy, bundles, and RTL layout to ios-localization; formatting still requires locale review even when no text is translated.
Contents
- Workflow
- Quick Reference
- Selection and Availability
- Parsing
- SwiftUI Integration
- Custom FormatStyle
- Common Mistakes
- Review Checklist
- References
Workflow
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Testing & QA, Code Review & Quality, Mobile Development
- First seen
- Jun 3, 2026
More from dpearson2699/swift-ios-skills
All 98- Core Data2.8K
- Focus Engine2.8K
- Ios Security1.1K
- Live Activities465
- Mapkit Location461
- Photos Camera Media456
- Eventkit Calendar415
- Cloudkit Sync413
- Metrickit Diagnostics409
- Musickit Audio409
- Realitykit Ar407
- Callkit Voip403
- Pencilkit Drawing403
- Homekit Matter402
- Passkit Wallet401
- Codable Patterns252
- Swiftui Animation5.7K
- Ios Accessibility5.2K
- Swiftui Performance4.8K
- App Store Review4.8K
- Swiftui Patterns4.7K
- Ios Networking4.6K
- Swiftui Navigation4.6K
- Swift Testing4.5K