Skip to content

The toolbar flashes when navigating back from navigation controller #2102

@ldakhoa

Description

@ldakhoa

Describe the bug
The toolbar flashes when navigating back when navigating to the next screen, then goes back with the keyboard showing up

To Reproduce

Focus on any field with a toolbar enabled, navigate to the next screen using navigationController.pushViewController, then swipe back and press the back button. Then you will see the toolbar flash for a second.

Note that we navigate from the search screen, to keep a better user experience, we want to keep the keyboard show, so we cannot use endEditing to fix the issue

Expected behavior
The toolbar not flashing anymore

Screenshots

Screen.Recording.2025-03-17.at.2.43.31.PM.mov

Demo Project
Using the Demo project from IQKeyboardManager still can reproduce

Versions

Xcode: 16.0
Mac OS: xx.xx.x
Simulator/Device: iPhone 16 Pro, iOS 18.0
Library Version: Develop branch downloaded 17 March

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions