Building A Stopwatch And Timer Using Xcode 16's New SystemFormatStyles
SwiftUI Documentation continues to be lacking. (Updated 2024-09-22 to use the new TimeDataSource type)
SwiftUI Documentation continues to be lacking. (Updated 2024-09-22 to use the new TimeDataSource type)
Apple gives us a modern replacement for the magical format strings we pass to DateFormatters, let’s talk about the Verbatim Format Style.
So much power to convert, do math on, and localize the display of your measurement values at your fingertips… yet no one uses it.
A full example of adding all of the bells and whistles of ParseableFormatStyle onto your own types, including AttributedString output.
The other side of the FormatStyle coin, getting our data from strings.
Apple failed to document it, so I built a whole site for it: fuckingformatstyle.com