How to Schedule a Repeating Task using Swift

This one’s really quick and simple! First create a timer (at class level probably, so it doesn’t go out of scope):

Then inside whatever function you need:

Follow it by creating the ‘Tick’ selector specified in the above