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

How to use observers to track system time?

Forums > Swift

I am making a basic game where the user is able to repeat the same action after a certain period of time (button will only be active after a certain time period), but I am unable to figure out how to implement the logic using observers. I would appreciate if someone could point me out in the right direction; any resources etc. would be appreciated.

Thank you!


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.