I create a custom view to show with SwiftMessages, it shows beautifully but I have a close button inside that I want to handle the touchUpInside event to dismiss the message myself but it doesn't work. I think it must be the PassthroughView and its hitTest function which block the button's interactive. Could you help me about this case? I tried inheritage the MessageView and set my close button to MessageView's button but doesn't work either.
I create a custom view to show with SwiftMessages, it shows beautifully but I have a close button inside that I want to handle the touchUpInside event to dismiss the message myself but it doesn't work. I think it must be the PassthroughView and its hitTest function which block the button's interactive. Could you help me about this case? I tried inheritage the MessageView and set my close button to MessageView's button but doesn't work either.