added methods for prepareForDisplay protocols

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2021-10-14 12:35:28 -05:00
parent bbe50fdfe0
commit b907943bb1
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;