Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Create a Timer or Stopwatch Using Only a SwiftUI Text View

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

Share this post

Type Safely
Type Safely
Create a Timer or Stopwatch Using Only a SwiftUI Text View
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share