Skip to content

Commit

Permalink
fix: 修复:页面全屏手势开启后从其他页面返回时,全屏手势失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
l1Dan committed Dec 28, 2023
1 parent 9b2a333 commit 5bd0eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ + (void)load {
if (selfObject.viewControllers.count > 0) {
[viewController nx_configureNavigationBarWithNavigationController:selfObject];
}
// 重新检查返回手势是否动态修改
[selfObject nx_configureInteractivePopGestureRecognizerWithViewController:viewController];

UIViewController *appearingViewController = viewController;
[selfObject nx_transitionViewController:appearingViewController navigationTransitionState:NXNavigationTransitionStateWillPush];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ + (void)load {
[selfObject nx_updateNavigationBarSubviewState];
// perf: 当前 ViewController 以及展示完成,可以检查 NXNavigationVirtualWrapperView 是否存在
[selfObject nx_checkNavigationVirtualWrapperViewState];
// fixed: 从其他页面返回时全屏手势无法生效问题
[selfObject.navigationController nx_configureInteractivePopGestureRecognizerWithViewController:selfObject];
}
});

Expand Down

0 comments on commit 5bd0eab

Please sign in to comment.