I'm trying to do a counter rotation for a view within viewWillTransition(to:with:) (i.e. make one view not rotate while all the other views rotate).
The only issue I'm running into is when a view rotated 180 degrees, it does the counter rotation in the wrong direction (so the view ends up rotating to the final position instead of looking like it remains still). I'm pretty sure I can force the correct rotation direction by using keyframe animation but it looks like UIViewControllerTransitionCoordinator doesn't support keyframe animation.
I tried doing keyframe animation outside of the UIViewControllerTransitionCoordinator's animate(alongsideTransition:) method, but it doesn't looks right. Is there a to use keyframe animation here? Or can I force the correction direction for a rotation?
The only issue I'm running into is when a view rotated 180 degrees, it does the counter rotation in the wrong direction (so the view ends up rotating to the final position instead of looking like it remains still). I'm pretty sure I can force the correct rotation direction by using keyframe animation but it looks like UIViewControllerTransitionCoordinator doesn't support keyframe animation.
I tried doing keyframe animation outside of the UIViewControllerTransitionCoordinator's animate(alongsideTransition:) method, but it doesn't looks right. Is there a to use keyframe animation here? Or can I force the correction direction for a rotation?