Add back convenience property...

This commit is contained in:
Pfeil, Scott Robert 2019-01-23 15:06:26 -05:00
parent 84606e1019
commit ca9fe32f99
2 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#import <MVMCoreUI/MVMCoreUIDetailViewProtocol.h>
@class MainMenuViewController;
@class MVMCoreUITabBarPageControlViewController;
@class MVMAnimationManager;
@interface MFViewController : UIViewController <MVMCoreLoadDelegateProtocol, MVMCorePresentationDelegateProtocol, MVMCoreActionDelegateProtocol, UITextFieldDelegate, UITextViewDelegate, MFTextFieldDelegate, ButtonDelegateProtocol, MVMCoreViewControllerProtocol, MVMCoreViewManagerViewControllerProtocol, MVMCoreUIDetailViewProtocol>
@ -58,7 +59,10 @@
@property (nullable, strong, nonatomic) NSString *pageType;
// Set if this page is containted in a manager.
@property UIViewController <MVMCoreViewManagerProtocol>*manager;
@property (nullable, weak, nonatomic) UIViewController <MVMCoreViewManagerProtocol>*manager;
// Convenience for mf. Set if this page is containted in a tab bar page control.
@property (nullable, weak, nonatomic) MVMCoreUITabBarPageControlViewController *tabBarPageControl;
/* The bottom progress view that is shown in the shop flow */
@property (nullable, nonatomic, strong) UIProgressView *progressView;

View File

@ -34,6 +34,7 @@
#import "MVMCoreUIConstants.h"
#import "MVMCoreUISession.h"
#import "MVMCoreUILoggingHandler.h"
#import "MVMCoreUITabBarPageControlViewController.h"
@import MVMAnimationFramework;
@ -723,6 +724,13 @@
[self adobeTrackPageState];
}
- (void)setManager:(UIViewController <MVMCoreViewManagerProtocol>*)manager {
_manager = manager;
if ([manager isKindOfClass:MVMCoreUITabBarPageControlViewController.class]) {
self.tabBarPageControl = (MVMCoreUITabBarPageControlViewController *)manager;
}
}
#pragma mark - adobe analytics
- (nullable NSArray <NSDictionary *> *)additionalActionsToTrackWithMainActionInformation:(nullable NSDictionary *)actionInformation additionalData:(nullable NSDictionary *)additionalData {