Describe the bug
- input view position is wrong (behind system keyboard) when parent view is shown as form sheet (you assume coordinates start at (0.0) which leads to improper calculations)
- when parent is shown in UINavigationController and input has input (keyboard is shown) and user starts to drag right the whole view, keyboard stays as is while your algorithm starts the hiding animation moving the input view downwards.
To Reproduce
Steps/code to reproduce the behavior:
Expected behavior
- Input view must always be at the edge of the system keyboard even if the view is shown as form sheet
- input view must always be at the edge of the system keyboard even if user drags the view right, because the keyboard stays on the screen during the animation
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- What version of InputBarAccessoryView are you using?: 6.4.0
- What version of iOS are you running on? 15.0, 17.0, 18.0
- What version of Swift are you running on? Swift 5
- What device(s) are you testing on? Are these simulators? iPhone 11 Pro Max, iPhone 15 Pro Max, iPhone 16 Pro Max
- Is the issue you're experiencing reproducable in the example app? no, your examples don't cover scenarios described
Additional context
Add any other context about the problem here.
My advice is to start using kyeboardLayoutGuide (min iOS 15) as the bottom constraint instead of all of the calculations you're doing.
Describe the bug
To Reproduce
Steps/code to reproduce the behavior:
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
My advice is to start using kyeboardLayoutGuide (min iOS 15) as the bottom constraint instead of all of the calculations you're doing.