A Swift demo of using CoreAnimation