I have code like following.
override func viewDidLoad() {
super.viewDidLoad()
// Some setup
button.addTarget(self, action: #selector(handleInputModeList(from:with:)), for: .allTouchEvents)
}
override func handleInputModeList(from view: UIView, with event: UIEvent) {
if event == onlyTouchUpEvent {
// do something
} else {
super.handleInputModeList(from: view, with: event)
}
}
In above handleInputModeList
code, what to write in the if condition so that block only executes when the event is touchUpInside