hitTest:WithEvent and Subviews

前端 未结 5 1128
悲哀的现实
悲哀的现实 2021-01-02 02:05

I have 2 views , but i want to make 1 view (virtually) bigger. if I place my tapGesture on v1, the tap gesture works with a bigger hit area but if I place my tapGesture on

5条回答
  •  心在旅途
    2021-01-02 02:42

    As far as I understand from your question, you have added bigger V2 on top of V1. so V2 will be touchable only with in the bounds of V1. So your gesture is not recognised in V2's extra area.

提交回复
热议问题