IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

Keyboard is pushing navigationBar to UP.

Open malisanjay5433 opened this issue 2 years ago • 4 comments

Describe the bug I have been working on one of project where collecting user information for screen, NavigationBar is custom which has back button, Progress bar for steps, Help button.

After integrating this library we have faced issue. We want to our navigationBar should be static/Sticky but library pushes up/ moving up. Please find the screen shot.

Attached demo project ? let me know if there is any idea to fix this issue. ?

Thanks in advance/

Expected behavior

Should't move navigationBar up, It should static. Only content/Scroll view need to move up

Screenshots Simulator Screen Shot - iPhone 8 - 2022-08-02 at 22 42 45 Simulator Screen Shot - iPhone 8 - 2022-08-02 at 22 42 49

Demo Project If applicable, add demo project. AnimationExperiment.zip

Versions

Xcode: x.x Mac OS: xx.xx.x Simulator/Device: xx.x Simulator/Device Name: iPhone xx Library Version: x.x.x

Additional context Add any other context about the problem here.

malisanjay5433 avatar Aug 02 '22 17:08 malisanjay5433

I am experiencing the same behavior.

robee9 avatar Aug 02 '22 22:08 robee9

@malisanjay5433 @robee9 Add your view inside scrollview it will work as expected.

https://user-images.githubusercontent.com/29564375/182572173-7769b7f6-afc3-4ec8-b2d7-6fa5e932286d.mov

darshanPatel16 avatar Aug 03 '22 09:08 darshanPatel16

try to put this code in ViewDidLoad extendedLayoutIncludesOpaqueBars = true this function allows the view to go under the status bar. It is needed because if NavigationBar.isTranslusent = false - IQKeyboardManager will bug

max270598 avatar Aug 03 '22 10:08 max270598

try to put this code in ViewDidLoad() extendedLayoutIncludesOpaqueBars = true this function allows the view to go under the status bar. It is needed because if NavigationBar.isTranslusent = false - IQKeyboardManager will bug

Thanks max270598, that code "extendedLayoutIncludesOpaqueBars = true" solved the problem!!

robee9 avatar Aug 03 '22 17:08 robee9

I have encountered the same problem. Is there a solution?

Arya-Wang avatar Jun 04 '23 07:06 Arya-Wang

Same problem :(

CyrilusK avatar Jul 09 '23 17:07 CyrilusK

@darshanPatel16 suggested the correct answer for these cases where we have our own custom navigation bar.

hackiftekhar avatar Jul 11 '23 20:07 hackiftekhar

same problem for me too. extendedLayoutIncludesOpaqueBars = true didn't work for my case.

Salander7 avatar Oct 09 '23 21:10 Salander7