Caps-iOS/CapCollector/Presentation/CapCell.swift

40 lines
770 B
Swift
Raw Normal View History

2019-03-15 13:19:19 +01:00
//
// CapCell.swift
// CapFinder
//
// Created by User on 22.04.18.
// Copyright © 2018 User. All rights reserved.
//
import UIKit
class CapCell: UITableViewCell {
@IBOutlet private weak var capImage: RoundedImageView!
@IBOutlet private weak var matchLabel: UILabel!
@IBOutlet private weak var nameLabel: UILabel!
@IBOutlet private weak var countLabel: UILabel!
2020-05-16 11:21:55 +02:00
var id: Int = 0
2019-03-15 13:19:19 +01:00
2020-05-16 11:21:55 +02:00
func set(image: UIImage?) {
capImage.image = image ?? UIImage(named: "launch")
}
2019-03-15 13:19:19 +01:00
func set(name: String) {
self.nameLabel.text = name
2019-03-15 13:19:19 +01:00
}
2020-05-16 11:21:55 +02:00
func set(matchLabel: String) {
self.matchLabel.text = matchLabel
}
func set(countLabel: String) {
self.countLabel.text = countLabel
}
2019-03-15 13:19:19 +01:00
}