How to make an action repeat using Timer

How to make an action repeat using Timer

Timers are a great way to run code on a repeating basis, and iOS has the Timer class to handle it for you. First, create a property of the type Timer!.