Perhaps the issue will be fix on the final version of iOS 17. If it shouldn't be the case, here is a fix.
The keyboard height is not correct the first time callbacks onKeyboardWillShow and onKeyboardDidShow are displayed. The value is 44 instead of an awaited value around 300.
Since the next time the callbacks are called, the height value is correct, it seems enough to ignore the first calls by setting a guard when the keyboard height is too low to be the right one.
Perhaps the issue will be fix on the final version of iOS 17. If it shouldn't be the case, here is a fix.
The keyboard height is not correct the first time callbacks onKeyboardWillShow and onKeyboardDidShow are displayed. The value is 44 instead of an awaited value around 300.
Since the next time the callbacks are called, the height value is correct, it seems enough to ignore the first calls by setting a guard when the keyboard height is too low to be the right one.