diff --git a/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerProtocol.h b/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerProtocol.h index 4407a49..f628227 100644 --- a/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerProtocol.h +++ b/MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerProtocol.h @@ -22,6 +22,9 @@ /// Notifies the manager that the controller received new data. - (void)newDataReceivedInViewController:(nonnull UIViewController *)viewController; +/// Call on a manager when a view controller is being prepared to be displayed. (Mostly called by other managers) +- (void)prepareDisplayForViewController:(nonnull UIViewController *)viewController; + /// Call on a manager when a view controller will be displayed. (Mostly called by other managers) - (void)willDisplayViewController:(nonnull UIViewController *)viewController; diff --git a/MVMCore/MVMCore/PresentationHandling/MVMCorePresentationDelegateProtocol.h b/MVMCore/MVMCore/PresentationHandling/MVMCorePresentationDelegateProtocol.h index 8dc27f4..4ecb774 100644 --- a/MVMCore/MVMCore/PresentationHandling/MVMCorePresentationDelegateProtocol.h +++ b/MVMCore/MVMCore/PresentationHandling/MVMCorePresentationDelegateProtocol.h @@ -12,6 +12,8 @@ @protocol MVMCorePresentationDelegateProtocol @optional +// Called when a view controller is about to be added to a navigation controller +- (void)navigationController:(nonnull UINavigationController *)navigationController prepareDisplayForViewController:(nonnull UIViewController *)viewController; // Called when a view controller will be displayed on a navigation controller - (void)navigationController:(nonnull UINavigationController *)navigationController willDisplayViewController:(nonnull UIViewController *)viewController;