Fix swipe-back in iOS

This commit is contained in:
Hristo Hristov
2016-03-25 12:01:02 +02:00
parent e0f52b1031
commit 429646f392
12 changed files with 201 additions and 169 deletions

View File

@@ -9,6 +9,7 @@ import {DeviceType} from "ui/enums";
global.moduleMerge(pageCommon, exports);
var ENTRY = "_entry";
var DELEGATE = "_delegate";
function isBackNavigation(frame: any, entry): boolean {
if (!frame) {
@@ -177,6 +178,13 @@ class UIViewControllerImpl extends UIViewController {
frame._updateActionBar(page);
page.onNavigatedTo(isBack);
// If page was shown with custom animation - we need to set the navigationController.delegate to the animatedDelegate.
frame.ios.controller.delegate = this[DELEGATE];
// Workaround for disabled backswipe on second custom native transition
this.navigationController.interactivePopGestureRecognizer.delegate = this.navigationController;
frame._processNavigationQueue(page);
}
};