I am creating a Widget that has a textfield that counts down from a date like so:
Text(endDate, style: .relative)
This works fine, however as its relative, once it hits zero, it will continue to count back up again as the endDate becomes in the past.
Is there a way to terminate the text when it hits zero? Or do I have to rebuild this feature with a timer?
All I need to do is count down from a start date to and end date then invalidate the text field or show a message.