apple documentation on UIViewController dismiss(animated:completion:) says that
The presenting view controller is responsible for dismissing the view controller it presented. If you call this method on the presented view controller itself, UIKit asks the presenting view controller to handle the dismissal.
but when I override the presenting controller's dismiss
override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil)
it is not called
ViewController1 -> present ViewController2
ViewController2.dismiss -> dismiss from ViewController2 is called and ViewController1.(override)dismiss is not called