Delegating action through protocol not working swift
问题 I needed to delegate a click action for my UIView class to my UIViewController class since Swift does not support multiple class inheritance. So i wanted it such that once a button is clicked on my subview, a function in my BrowserViewController class is called. I am using a protocol to achieve this, but on the function does not triggered when the button is tapped. Please help me out. View Controller class BrowseViewController: UIViewController { var categoryItem: CategoryItem! = CategoryItem