UIView作为UIButton不起作用(CocoaPod:LGButton)

I want to use this cocoa pod as a button. I picked a UIView, set its class and module to LGButton and edited the design. Then I realized that I just cannot get its feedback. So if you press on the LGButton the Code does NOT recognize the input. My Code:

@IBAction func thisLocationPressed(_ sender: LGButton) {
    print("BUTTON PRESSED")
    sender.isLoading = true
    let deadlineTime = DispatchTime.now() + .seconds(3)
    DispatchQueue.main.asyncAfter(deadline: deadlineTime) {
    sender.isLoading = false
    }
}

是的,我将其链接到Main.storyboard中的LGButton。当我按下按钮时,控制台从不显示“ BUTTON PRESSED”(按下按钮)……有人知道为什么吗?

Screenshot 1

Screenshot 2

谢谢!