Chapter 24 Back button in NavigationBar

How to handle Swipe Gesture and Back Button when controller pop from navigation stack. In this case, the pop is triggered automatically and the method in SceneCoordinator is not called. What action to associate these gestures with the SceneCoordinator?
I would really appreciate your help!

@fpillet Can you please help with this when you get a chance? Thank you - much appreciated! :]

Hi @harmansmith,

There are several ways to handle back actions that you didn’t trigger. One of them is for the SceneCoordinator be a UINavigationControllerDelegate so that it captures automatic pops and updates the current view controller. You may want to look into implementing navigationController(_:didShow:animated:) which can help you capture the current top view controller.

This topic was automatically closed after 166 days. New replies are no longer allowed.