Timer Class in Swift

Swift provides a Timer class which provides a timer that fires after certain time has elapsed sending a specified message to the target object. Timer is not a real time mechanism. They work in conjunction with runloops. The actual time at which the timer fires can be  significantly later. Timers can be repeating and non-repeating.

 

 

 

 

 

 

Leave a Reply