Different performances of keyboard view hierarchy on iOS 16 public beta between Stimulator and Real iPhone.

I was developing an app which contains an 'virtual' touchpad. It controls the position of the cursor by calculating the position of the finger on its view.

(The icon in front of the dividing line on the toolbar)

However, it works differently on the iPhone running iOS 16 between Xcode14's iOS 16 Stimulator. It work properly on real iPhone, but it doesn't work on stimulator. When finger start sliding from the icon, and was about to sliding on the keyboard, it seems the touchpad view lost the touch information of the finger, and it doesn't work.

I think it may because the keyboard view hierarchy is higher than the app, thus the touch event was passed to the keyboard, and the app can't receive the touch event.

Different performances of keyboard view hierarchy on iOS 16 public beta between Stimulator and Real iPhone.
 
 
Q