Example of using KeyFrames animation using Swift