Funny story about Pickers

Been sitting here for the past 30 minutes trying to figure out why my Picker wouldn’t transition to allow an item to be picked. I even modified code (added a controller) because it just wouldn’t transition. Really thought I had done something wrong since I’m still learning. Finally, after about 30 minutes (stubborn) and lots of googling, I decided to go ahead and post my question.

While I’m drafting this frustrating problem up and ensuring I’ve got all my ducks in a row I start thinking about the logic of a picker. More specifically, how I’ve implemented mine. As I was doing so I realized that I never wrapped my picker in a NavigationView. This obviously meant that when I tapped on the picker it had no way of navigating to the next screen.

Doh!! So, after all that I simply wrapped the picker in NavigationView and voila, everything worked.

Happy new year everyone!!