swift - How to keep button functionality when adding other views on top of said button in a subclass? -


i have button in app, have create uibutton subclass adds view , few labels on top of it. problem in app button not respond taps. how go fixing this?

i able fix problem setting view covering button property

userinteractionenabled = true 

that allowed text go through view button