Swift day counter time reduce value by day passed

Viewed 18

I want to make timer value reduced by days. The maximum counter value of counter allowed is 14. It starts with 14 and reduce value of counter when one day is passed. Automatically, after 14 days the value of counter will be zero

Scenario - There is button in the view. When click button it assign counter = 14, by every day the value will be reduced(not need to click button). When it reaches 0, we will sent alert counter value be 0

Note - Every time we pressed button it will reset counter = 14

0 Answers
Related