Troubleshooting ☠️ with embed UIViewController

Yesterday it was the day that nothing I wrote worked 😭. I had to work on a project with a complex UI environment because of the complexity of the business behind. My task was simply to make it work as clean as possible.

The main screen was a UIViewController, lets call it ViewController A, with a container UIView as a child (purple area *). The container view was initialized in the storyboard with a Embed UINavigationController. The navigation controller had a UIViewController (root relationship), lets call it ViewController B. The controller’s B navigationController pushes a final UIViewController, lets call it ViewController C, by pressing a Submit button (yellow area *).

Read More…