Create Loads of CountDown Timers in iOS Swift

In a UITableView!

Steven Curtis
7 min readJun 2, 2023
Photo by Michal Vavro on Unsplash

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:

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.

--

--