Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): Set transitionIsAnimating while pushing the controller rather waiting for delegate #10535

Merged
merged 7 commits into from
Dec 19, 2018
6 changes: 6 additions & 0 deletions iphone/Classes/TiUINavigationWindowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ - (void)pushOnUIThread:(NSArray *)args
[self performSelector:_cmd withObject:args afterDelay:0.1];
return;
}
if (!transitionWithGesture) {
transitionIsAnimating = YES;
}
TiWindowProxy *window = [args objectAtIndex:0];
BOOL animated = args != nil && [args count] > 1 ? [TiUtils boolValue:@"animated" properties:[args objectAtIndex:1] def:YES] : YES;

Expand All @@ -289,6 +292,9 @@ - (void)popOnUIThread:(NSArray *)args

if (window == current) {
BOOL animated = args != nil && [args count] > 1 ? [TiUtils boolValue:@"animated" properties:[args objectAtIndex:1] def:YES] : YES;
if (animated && !transitionWithGesture) {
transitionIsAnimating = YES;
}
[navController popViewControllerAnimated:animated];
} else {
[self closeWindow:window animated:NO];
Expand Down