Sorry Greg, but how is the solution of @B4DG3R brittle and relying on implementation details? The documentation of func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? clearly states it returns "The view object that’s the farthest descendent of the current view and contains point." In iOS 18 it doesn't do that and instead returning the root view. What's the purpose of the hitTest function when it's sole purpose cannot be relied upon?
Topic:
UI Frameworks
SubTopic:
General
Tags: