// // ImageAttachmentCollectionViewCell.swift // elpha-ios // // Created by Dwayne Harris on 11/29/18. // Copyright © 2018 Elpha. All rights reserved. // import Kingfisher import UIKit class ImageAttachmentCollectionViewCell: UICollectionViewCell { @IBOutlet var imageView: UIImageView! var attachment: AttachmentMO? override func awakeFromNib() { super.awakeFromNib() } func update(withAttachment attachment: AttachmentMO) { self.attachment = attachment imageView.kf.setImage(with: attachment.url!, placeholder: UIImage(named: "Placeholder")) } }