[ABANDONED] Mastodon iOS client.
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.

33 lines
890 B

//
// InstancesTableViewCell.swift
// elpha-ios
//
// Created by Dwayne Harris on 9/16/18.
// Copyright © 2018 Elpha. All rights reserved.
//
import Foundation
import UIKit
class InstancesTableViewCell: UITableViewCell {
@IBOutlet var thumbnailImageView: UIImageView!
@IBOutlet var instanceNameLabel: UILabel!
@IBOutlet var statusesLabel: UILabel!
@IBOutlet var usersLabel: UILabel!
var thumbnailURL: URL? {
didSet {
if let thumbnailURL = thumbnailURL {
ImageCache.shared.getImage(forURL: thumbnailURL) { image, error in
guard error == nil else {
return
}
DispatchQueue.main.async {
self.thumbnailImageView.image = image
}
}
}
}
}
}