0

Im using a Text view to show a remaining time to a date like so:

Text(entry.remainingTime, style: .relative)

it works but when the timer reaches 0 it start again increasing, which is good for me I just need to know the counter reached 0 so I can change a text, to keep everything understandable until the next widget update happens.

B. Mohammad
  • 2,152
  • 1
  • 13
  • 28
  • Look at the widget [code along](https://developer.apple.com/videos/play/wwdc2020/10034/) there are 3 parts I remember there is an example of something similar when the characters reach 100 percent. I don't remember the exact section and term but it doesn't take a long time for see the videos. – lorem ipsum May 06 '21 at 15:19
  • ok I will check that thanks – B. Mohammad May 06 '21 at 15:32
  • https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget – YodagamaHeshan Sep 20 '21 at 05:27

0 Answers0