There is something wrong on iOS 16
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
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.
Thanks for your reply !
I have the same problem
This even happens in the demo project @hackiftekhar
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
Without scrollview or tableview for OS 16 it's not working.
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.
It would not be possible at the moment to fix this problem. I'll keep it open for the future.
@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?