thomasokken / free42

Free42 : An HP-42S Calculator Simulator
https://thomasokken.com/free42/
GNU General Public License v2.0
280 stars 54 forks source link

Proposed flip transition for views on iOS #66

Open sfsam opened 6 months ago

sfsam commented 6 months ago

Hi Thomas, This is a proposed flip transition animation for switching between the calculator view and preferences, states, skins, etc. on iOS. Instead of an abrupt switch, we transition with a flip animation which gives the user visual feedback and is more pleasing to the eye. Going back to the calculator view flips the opposite way.

The code is minimal. The original calls were just wrapped in a call to +[UIView transitionWithView:duration:options:animations:completion:], API compatible with iOS 4.0+.

thomasokken commented 6 months ago

Hi Sanjay, I'm not going to use your patch right away -- I just got started on iPad support, and at some point I'll probably want to redo the way dialogs are presented, so they don't fill the entire screen on iPads. But I agree that it would be nicer to have animated transitions. I appreciate the patch!

sfsam commented 6 months ago

Thank you for taking a look, Thomas. I'm looking forward to seeing how you adapt the app to the iPad.