You can stop writing date format strings like "yyyy-MMM-dd"
Apple gives us a modern replacement for the magical format strings we pass to DateFormatters, let's talk about the Verbatim Format Style.
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.
I've released a big update for Fucking FormatStyle/Gosh Darned FormatStyle.
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
Apple failed to document it, so I built a whole site for it: fuckingformatstyle.com