Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion IQKeyboardManager/IQKeyboardManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,12 @@ -(void)adjustPosition
if ([strongSelf privateIsEnableAutoToolbar] == YES)
{
//This will update the next/previous states
[strongSelf addToolbarIfRequired];
// Skip adding toolbar during interactive navigation gesture to prevent toolbar flash (Issue #2102)
BOOL isInteractiveGestureActive = (strongSelf->_rootViewController.navigationController.interactivePopGestureRecognizer.state == UIGestureRecognizerStateBegan ||
strongSelf->_rootViewController.navigationController.interactivePopGestureRecognizer.state == UIGestureRecognizerStateChanged);
if (!isInteractiveGestureActive) {
[strongSelf addToolbarIfRequired];
}
}
}
}];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,10 @@ private extension IQKeyboardManager {

if scrollView is UITableView || scrollView is UICollectionView {
// This will update the next/previous states
textInputView.reloadInputViews()
// Skip reloading input views during interactive navigation gesture to prevent toolbar flash (Issue #2102)
if !activeConfiguration.rootControllerConfiguration.isInteractiveGestureActive {
textInputView.reloadInputViews()
}
}
})
}
Expand Down