Open sejr opened 6 years ago
This is related to a point made in #82.
How can I add gesture to ImageView?
If I try like this nothing happens, however if I call UIImageView extension method inside alternativeHandler it works well.
//inside bulletin
item.imageView?.isUserInteractionEnabled=true
let tap = UITapGestureRecognizer(target: self, action: Selector("tapTap:"))
item.imageView?.addGestureRecognizer(tap)
//down in ViewController
@objc func tapTap(gestureRecognizer: UITapGestureRecognizer) {
print("TAPTAP!!!!!!")
}
New Issue Checklist
Issue Description
I would like to set an image dynamically with Kingfisher, but it appears that the imageView is read-only (and apparently set to
nil
). Is it possible to do this without subclassing BLTNItem?Environment
Example
This is an example subclass that I could not get to work.
Instantiating and displaying the above class: