Merge branch 'bugfix/GYNVB-1160' into 'develop'
Bugfix/gynvb 1160 ### Summary Prod_iOS_Eagle_AR Tool overview screen - missing menu icon. ### JIRA Ticket https://onejira.verizon.com/browse/GYNVB-1160 Co-authored-by: Rajesh Pullagalla <rajesh.pullagalla1@verizonwireless.com> Co-authored-by: Sureshkumar Ramachandran <sureshkumar.ramachandran@verizon.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1036
This commit is contained in:
commit
c0d4db39ca
@ -262,7 +262,7 @@ extension MVMCoreUISplitViewController: MVMCoreViewManagerProtocol {
|
||||
}
|
||||
|
||||
public func willDisplay(_ viewController: UIViewController) {
|
||||
setupPanels()
|
||||
setupPanels(viewController)
|
||||
updateState(with: viewController)
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ typedef NS_ENUM(NSInteger, MFNumberOfDrawers) {
|
||||
- (void)setNavigationIconColor:(nullable UIColor *)color;
|
||||
|
||||
/// Updates the panels that are used.
|
||||
- (void)setupPanels;
|
||||
- (void)setupPanels:(nullable UIViewController*)viewController;
|
||||
|
||||
/// Returns if the left panel is staying extended (usually do to screen size threshold)
|
||||
- (BOOL)leftPanelStaysExtended;
|
||||
|
||||
@ -723,9 +723,9 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
[panel removeFromParentViewController];
|
||||
}
|
||||
|
||||
- (void)setupLeftPanel {
|
||||
- (void)setupLeftPanel:(nullable UIViewController*)viewController {
|
||||
UIViewController <MVMCoreUIPanelProtocol> *panel = nil;
|
||||
UIViewController *currentViewController = [self getCurrentDetailViewController];
|
||||
UIViewController *currentViewController = viewController ? viewController : [self getCurrentDetailViewController];
|
||||
if ([currentViewController respondsToSelector:@selector(overrideLeftPanel)]) {
|
||||
panel = [((UIViewController <MVMCoreUIDetailViewProtocol> *)currentViewController) overrideLeftPanel];
|
||||
} else {
|
||||
@ -735,6 +735,7 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
|
||||
if (!panel) {
|
||||
[self removePanel:self.leftPanel];
|
||||
self.leftPanel = nil;
|
||||
} else if (panel && panel != self.leftPanel) {
|
||||
[self removePanel:self.leftPanel];
|
||||
[self addPanel:panel];
|
||||
@ -795,9 +796,9 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setupPanels {
|
||||
- (void)setupPanels:(nullable UIViewController*)viewController {
|
||||
[self forceHideBothDrawers];
|
||||
[self setupLeftPanel];
|
||||
[self setupLeftPanel:viewController];
|
||||
[self setupRightPanel];
|
||||
self.explictlyShowingPanel = nil;
|
||||
[self.view layoutIfNeeded];
|
||||
@ -968,7 +969,7 @@ CGFloat const PanelAnimationDuration = 0.2;
|
||||
[NSLayoutConstraint constraintWithItem:coverView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.view attribute:NSLayoutAttributeTop multiplier:1.0 constant:0].active = YES;
|
||||
[NSLayoutConstraint constraintWithItem:self.view attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:coverView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0].active = YES;
|
||||
|
||||
[self setupPanels];
|
||||
[self setupPanels:nil];
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user