I made a button. And used the below code. But it doesn't work at all.
override func pressesBegan(_ presses: Set<UIPress>, with event: UIPressesEvent?) {
print("pressTest")
btnConvert.isHidden = true
}
How can I know when the button is pressed and when button pressing is canceled?