I added below codes on ViewController
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
print("started")
}
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
print("ended")
}
but it doesn't print any messages at all.