IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

There is something wrong on iOS 16

Open Ssiswent opened this issue 3 years ago • 2 comments

Describe the bug When I select one of the textfield, the position of the background view is not correct at first, and soon moves to the correct position. This happend on iOS 16 beta2 (iPhone 12). And the same problem doesn't appear on iOS 14.5.1 (iPhone11) running the same project.

Screenshots https://user-images.githubusercontent.com/37449310/177706269-0e50cbb1-0e71-410e-94a5-4add4033c623.mp4

Versions

Xcode: 14 beta1 Mac OS: 12.4 Simulator/Device: iOS 16 beta2 Simulator/Device Name: iPhone 12 Library Version: 6.5.10

Ssiswent avatar Jul 07 '22 06:07 Ssiswent

Need to check this as I don't have iOS 16 device or simulator yet, so I can't test at the moment, but will test it soon.

hackiftekhar avatar Jul 30 '22 07:07 hackiftekhar

Thanks for your reply !

Ssiswent avatar Aug 01 '22 05:08 Ssiswent

I have the same problem

VladMelnik avatar Oct 31 '22 08:10 VladMelnik

This even happens in the demo project @hackiftekhar

DantePuglisi avatar Nov 07 '22 20:11 DantePuglisi

on iOS15 or iOS16. when keyboard will shows should handle ur self.view as follow: CGFloat gap = 250;//for example ur keyboard gap is 250,This number must be positive self.view.bounds = CGRectMake(self.view.frame.origin.x, gap, self.view.frame.size.width, self.view.frame.size.height);

then when keyboard will hide u should handle as follow: self.view.bounds = CGRectMake(self.view.frame.origin.x, 0, self.view.frame.size.width, self.view.frame.size.height);

it work for me,it is so odd in iOS Version>=15.0

chengzong avatar Dec 07 '22 07:12 chengzong

Without scrollview or tableview for OS 16 it's not working.

1007047 avatar Dec 11 '22 15:12 1007047

This is because whenever we change the view's position, the safe area get's changed and we'll see this effect. But I'm working on to overcome with this problem.

hackiftekhar avatar Sep 28 '23 15:09 hackiftekhar

It would not be possible at the moment to fix this problem. I'll keep it open for the future.

hackiftekhar avatar Oct 02 '23 13:10 hackiftekhar

@Ssiswent Can you please check this again with the current release and also with the master branch? Or if it's still reproducible then can you please share a demo project with me?

hackiftekhar avatar Nov 02 '23 14:11 hackiftekhar