Skip to content

Commit

Permalink
Resets image when PosterAndTitleCell will be reused
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrocaselani committed Jan 13, 2019
1 parent a7203b8 commit aa513ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CouchTrackerApp/Views/PosterAndTitleCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ public final class PosterAndTitleCell: CollectionViewCell {
}
}

public override func prepareForReuse() {
super.prepareForReuse()

posterImageView.image = nil
}

public let posterImageView = UIImageView()

public let titleLabel: UILabel = {
Expand Down

0 comments on commit aa513ab

Please sign in to comment.