On iPads, the OS adds a UIView as a parent to the rootViewController of the window:
DebugUIWindow
↳UITransitionView
↳UIDropShadowView
↳UIView (iPadOS only, not present on iOS)
↳DebugViewController
↳DebugView
We want the hit test logic to ignore this view (otherwise it captures all touches), so I've changed the window hit test to start checking in the root view (ie DebugView) instead.
Note that convert-ing the point to the rootView isn't necessary in this case since they're the same, but it's best practice, so better safe than sorry.
On iPads, the OS adds a
UIView
as a parent to the rootViewController of the window:We want the hit test logic to ignore this view (otherwise it captures all touches), so I've changed the window hit test to start checking in the root view (ie
DebugView
) instead.Note that
convert
-ing the point to therootView
isn't necessary in this case since they're the same, but it's best practice, so better safe than sorry.Fixes appcues/appcues-react-native-module#148