pointfreeco/isowords

Cube is incorrectly sized after rotation on iPad

chucks opened this issue · 1 comments

Describe the bug
If you rotate the iPad while playing isowords, the cube will not be sized the same as if the game was launched in that orientation.

To reproduce

  • Launch isowords in landscape on iPad or the simulator

  • start a new game

  • rotate to portrait

  • Launch isowords in portrait on iPad on the simulator

  • start a new game

  • rotate to landscape

Expected behavior
The cube would be shown without clipping and at the same size as if the app was launched in the given orientation.

Screenshots/video
Launch Portrait

rotate to portrait

Launch Landscape

rotate to landscape

Environment

  • iPad running iOS 14.7.1

Additional context
Similar issues exist if you switch the iPad from full screen into side-by-side multitasking, but there are additional issues with the multitasking UI not covered by this problem. I'll log a separate issue for these.

Just merged your fix, thanks!