diff --git a/WordPress/Classes/ViewRelated/Post/Scheduling/SchedulingCalendarViewController+PresentFrom.swift b/WordPress/Classes/ViewRelated/Post/Scheduling/SchedulingCalendarViewController+PresentFrom.swift index edc9112cb2bc..38b78c845735 100644 --- a/WordPress/Classes/ViewRelated/Post/Scheduling/SchedulingCalendarViewController+PresentFrom.swift +++ b/WordPress/Classes/ViewRelated/Post/Scheduling/SchedulingCalendarViewController+PresentFrom.swift @@ -39,8 +39,8 @@ extension SchedulingCalendarViewController: UIViewControllerTransitioningDelegat class SchedulingLightNavigationController: LightNavigationController { var onDismiss: (() -> Void)? - override func viewWillDisappear(_ animated: Bool) { - super.viewWillDisappear(animated) + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) onDismiss?() } }