ViewController name

There are Situations beside a massive Switch (which is indeed bad) where this is very useful.
To me, i am using a split-pane on a Tablet for providing an Menu to quickly jump to different Pages in the App.
Every Page also have a next/back Button so sequential Navigation.
The Pages are lazy loaded where the ViewController Name / PageName comes into play.
This way i’m having an elegant Solution to keep the acitve Page and the Menu in sync on squential navigation (by highligting the Menu Item) by subscribing to viewDidEnter(ViewController) on Appstart and only using navpush/navpop on the Pages.
To me coding around this Limitation makes my design at least not better.

1 Like