I have added UIKit button to SwiftUI view through UIViewRepresentable. In SwiftUI view i have a VStack which covers whole view with tap gesture enabled. Inside VStack I have two buttons one is from SwiftUI and another one is from UIKit. The SwiftUI button click works perfectly but UIKit button click doesn't work as expected. The problem here is tap gesture is eating up the UIButton(UIKit) touch up events. The quick workaround is to add tap gesture to UIKit button or long press the UIKit button.
If the UIKit button is from any third party library I will not have any control to add tap gesture to the UIKit button.
And long press to UIKit button not a perfect workaround also.
Any other solution or workaround is there?
I have to support from iOS 14 and tap gesture should be enabled for VStack.
Any help would be appreciated. Thank you!