2 // PlayerItemTableViewCell.swift
5 // Created by Pawel Dabrowski on 22/09/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
11 class PlayerItemTableViewCell: UITableViewCell {
13 @IBOutlet weak var titleLabel: UILabel!
14 @IBOutlet weak var playingIcon: UIImageView!
16 override func awakeFromNib() {
18 // Initialization code
19 selectionStyle = .none
20 backgroundColor = .clear
21 contentView.backgroundColor = .clear
24 func setup(mediaModel: MediaModel, isPlaying: Bool) {
25 titleLabel.text = mediaModel.name
28 override func setSelected(_ selected: Bool, animated: Bool) {
29 super.setSelected(selected, animated: animated)
30 playingIcon.isHidden = !selected