From b907943bb1928bc684790674e6fa0e063a264209 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 14 Oct 2021 12:35:28 -0500 Subject: [PATCH] added methods for prepareForDisplay protocols Signed-off-by: Matt Bruce --- MVMCore/MVMCore/MainProtocols/MVMCoreViewManagerProtocol.h | 3 +++ .../PresentationHandling/MVMCorePresentationDelegateProtocol.h | 2 ++ 2 files changed, 5 insertions(+) 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;