Does a day counter exists in swift?

hi! im trying to create an app for the people that tries quitting smoking

i dont know how get a day counter. i only want a label that prints the days that have passed

You can use the current date, or have a variable set for their start date.

And then count up from there how many days it’s been.

This may get you started