Swift -> Add tap gesture recognizer to views

There are two ways to add click event in swift, through storyboard or programmatically. Click depends on type of widgets. If it’s a UIButton, then it can be easily done through storyboard but if it is UILabel, UIView or even a UIImageView then you can implement click in code using UITapGestureRecognizer. Let’s start with clickContinue reading “Swift -> Add tap gesture recognizer to views”