I want to have images downloaded by kingfisher and set as the image
of my AnnotationView
. The problem is that Kingfisher only seems to work on UIImageView
's and the AnnotationView
doesn't seem to expose its.
So one approach would be to use Kingfishers download mechanism to retrieve the image and set it by myself:
KingfisherManager.shared.retrieveImage(with: url) { result in
// Do something with `result`
}
But I'd rather want Kingfisher to set the image because with this approach I'd lose some of Kingfishers features (e.g. placeholder image).
How can I get a hold of the AnnotationView's ImageView?