What started as a deep dive into Format Styles in iOS 15 and iOS 16 quickly outgrew a series of posts on a blog. In the grande tradition of cuss including titled informational websites who have a singular goal. I present to you:
or (for those needing less cussing in their life)
It’s a single page, and includes much more detail than the previous posts.
There’s a quiz
In all of my research, the biggest hurdle I ran into was not knowing what I could even do with with these format styles.
I built a quiz to help you discover exactly what you would want to do.
There’s an FAQ
Encompassing the most common questions others have asked, and more.
Everything has been organized by their use cases and includes styles available for use in both Xcode 13 and Xcode 14.
- Minimum Requirements
- The Basics
- Numeric Styles
- Single Date Styles
- Date and Time Style
- ISO 8601 Style
- Relative Date Style
- Verbatim Style (Updated for Xcode 14)
- Date Range Styles
- Duration Styles (New for Xcode 14)
- Time Style (New for Xcode 14)
- Units Style (New for Xcode 14)
- Measurement Style
- List Style
- Person Name Style
- Byte Count Style (Updated for Xcode 14)
- URL Style (New in Xcode 14)
- Custom FormatStyle
- SwiftUI Integration
- AttributedString Output