A avatar animation demo written in swift