Experimentation with Swift, animation bugfix