You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
613 B
24 lines
613 B
//
|
|
// 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"))
|
|
}
|
|
}
|