Stop Using Swift Timers: Use CADisplayLink

Hyperbole, but based in truth

Steven Curtis

--

Photo by Veri Ivanova on Unsplash

Before we start

Some basic animations, like my loading animation run fine using times to repeat the code blocks and make a UI that looks rather nice to the user.

But this has nothing to do with the framerate of the user’s device, and this may produce a rather horrible drift of the…

--

--