Create Loads of CountDown Timers in iOS Swift
In a UITableView!
7 min readJun 2, 2023
So we are going to create the following:
It’s not got a perfect UI, sorry about that (how is the seconds label not centred over the seconds circle?). It does however let us pick some hours minutes and seconds with a picker, which is nice.
Before we start
Prerequisites:
- You will be expected to be aware how to make a Single View Application in Swift
- This solution uses UITableView as well as closures and UIBézierPaths
What this article is about, and what it isn’t about
This article is about creating a timer and displaying the result — in a UITableViewCell
.
This isn’t an article about architecture, everything is nestled within the UIViewController
although I’ve plenty of articles about MVVM-C and other architectures if you’re interested.