Categories: iOS

Update on that 0 degrees being 90 degrees thing…

Okay, I updated the demo app so 0° is at the top of the circle. This makes me feel better about everything in general and makes me wonder what could possibly have motivated me not to do this from the very beginning. Sometimes I’m amazed I’m able to remember on which foot to put which shoe.


Code: SpriteKit and CoreMotion

In my never ending quest to make life difficult for myself, I ran into a difficulty with iOS rotation animations. I could be entirely wrong about this — it’s been known to happen — but there seems to be a default device-orientation animation that iOS plays when switching from portrait to landscape, for instance. It rotates the SKScene using a .scaleMode such as .aspectFit which, I guess, is okay for some purposes. The thing is, for the life of me, I couldn’t find a way to replace that animation with one I preferred more.  I could find no shortage of ways to add more animations on top of it, but no way to right out replace it.