delegate
The delegate of the navigation controller object.
Declaration
weak var delegate: (any UINavigationControllerDelegate)? { get set }Discussion
You can use the navigation delegate to perform additional actions in response to changes in the navigation interface. For more information about implementing the delegate, see UINavigationControllerDelegate.