Type Safely

Type Safely

Create a Timer or Stopwatch Using Only a SwiftUI Text View

Daily Coding Tip 168

Millie Sturgeon's avatar
Millie Sturgeon
Sep 07, 2022
∙ Paid
Photo by Agê Barros on Unsplash

Similar to recent Daily Coding Tips, I’m going to start by creating a dedicated Section that allows the control of multiple properties.

I’m setting the maximum number of minutes at an hour, but you’re welcome to change that 60 to whatever you want.

I wouldn’t recommend changing the maximum number of seconds.

Although I don’t…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture