Horje
swift uiview add tap gesture Code Example
swift uiview add tap gesture
let tap = UITapGestureRecognizer(target: self, action: #selector(self.handleTap(_:)))
myView.addGestureRecognizer(tap)

// Then, you should implement the handler, which will be called each time when a tap event occurs:

@objc func handleTap(_ sender: UITapGestureRecognizer? = nil) {
    // handling code
}




Swift

Related
swift 5 delay dismiss view controller Code Example swift 5 delay dismiss view controller Code Example
format decimal place swift Code Example format decimal place swift Code Example
swift self.present full screen Code Example swift self.present full screen Code Example
add shadow to collection view cell swift Code Example add shadow to collection view cell swift Code Example
swift notifications mac Code Example swift notifications mac Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13