1. 3
  1.  

    1. 2

      I feel like this could’ve been much simpler if there was a way to swap a view without animation. Then you need two states: animation start angles and animation end angles. After animation ends you can calculate new star and end angles modulo 360° and swap the view without animation.