I am new to swift (and Xcode development in general) and I was wondering how to make an ImageView on the storyboard clickable. What I\'m trying to do is make it so when its
I achieved this by setting user interaction enable = true
enable = true
and this code below in TouchesBegan... Clean and simple for this
ImageView was also inside a StackView
if let touch = touches.first { if touch.view == profilePicture { print("image touched") } }