Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core into develop
This commit is contained in:
commit
e9abe2121a
@ -266,15 +266,11 @@
|
||||
- (nullable NSArray<UIViewController *> *)getViewControllersForNavigationController:(nullable UINavigationController *)navigationController {
|
||||
// Check if we are currently animating.
|
||||
NSInteger index = [self.navigationQueue.operations indexOfObjectPassingTest:^BOOL(__kindof MVMCoreNavigationOperation * _Nonnull operation, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
if (operation.isExecuting) {
|
||||
*stop = YES;
|
||||
return YES;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
return operation.isExecuting && [operation isKindOfClass:[MVMCoreNavigationOperation class]];
|
||||
}];
|
||||
|
||||
if (index != NSNotFound) {
|
||||
// Test above ensures we have an MVMCoreNavigationOperation. There are situations where block operations are submitted to the queue to be executed.
|
||||
MVMCoreNavigationOperation *operation = [self.navigationQueue.operations objectAtIndex:index];
|
||||
if (operation.navigationObject.navigationController == navigationController && operation.futureViewControllers) {
|
||||
// Return the future state if animating.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user