BLACK FRIDAY: Save 50% on all books and bundles! >>

How to stop `Text(Date, style: .timer)` at 0?

Forums > SwiftUI

See title. When I pass a date to Text(foo, style: .timer), the countdown just continues after reaching 0 (goes positive). Do I need to connect a regular Timer somehow?


Save 50% in my Black Friday sale.

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

Not logged in

Log in

Link copied to your pasteboard.