Skip to content

Commit

Permalink
Merge branch 'TeamNADA:develop' into feature/TeamNADA#144
Browse files Browse the repository at this point in the history
  • Loading branch information
mini-min authored Dec 15, 2021
2 parents cf64d39 + 3ca81ae commit 70e3e8d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/MainCardCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class MainCardCell: CardCell {
// MARK: - Properties

private var isFront = true
private enum Size {
static let cellHeight: CGFloat = 540
static let cellWidth: CGFloat = 327
}

public var isShareable: Bool?
public var cardDataModel: Card?
Expand All @@ -26,6 +30,13 @@ class MainCardCell: CardCell {
setGestureRecognizer()
}

override func prepareForReuse() {
super.prepareForReuse()

contentView.subviews.forEach { $0.removeFromSuperview() }
contentView.frame = CGRect(x: 0, y: 0, width: Size.cellWidth, height: Size.cellHeight)
}

// MARK: - Methods

static func nib() -> UINib {
Expand Down

0 comments on commit 70e3e8d

Please sign in to comment.