For example I have arranged the screen this way
View (Top level COntent View) >> Stack View >> View >> Button
The View that holds the Button has User Interaction Enabled. The Button is added to the View during runtime dynamically. When the Button is pressed the target action is nor fired.
Looks like the event is consumed before reaching the Button
I am using the following code to acheive the result.
button.addTarget(self, action: #selector(ratingButtonTapped(_:)), for: .touchDown)
However when I tried to create a Single View Application and just a View with the Buttons created dynamically as above, then I can see the Target action fired.
Is there anything to check further to ensure the target action is fired properly ?