Custom Time Interval Strings With DateComponentsFormatter
Daily Coding Tip 087

Yesterday’s Daily Coding Tip had a basic version of a countdown timer to WWDC 2022. There wasn’t time there to look at the formatter that was displaying the remaining time. I wanted to change that code to allow the user to enable or disable any of the units, select the style used by the formatter, and select the numbe…


