I've seen this in multiple places now, but when I have a keyboard up, and then I present a modal (i.e. UIImagePickerController or PHPickerViewController) and hit "Cancel", it shifts the view down by ~30 pixels, and it becomes partially covered by the keyboard.
The weird thing is, if I swipe down the UIImagePicker camera, it restores the frame just fine. So it seems to only happen when dismissing a sheet without a gesture.
Could it be a bad interaction with UIViewControllerRepresentable?
This is a bad bug if you're trying to have a textfield stay affixed to the top of the keyboard.
For now, I've just resignedFirstResponder before pulling up the keyboard.