46 lines
1.2 KiB
Swift
46 lines
1.2 KiB
Swift
//
|
|
// SPHomeHistoryContentCell.swift
|
|
// MoviaBox
|
|
//
|
|
// Created by 长沙佳儿 on 2025/6/18.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SPHomeHistoryContentCell: SPHomeContentCell {
|
|
|
|
|
|
override var contentModel: SPHomeContentModel? {
|
|
didSet {
|
|
playHistoryView.dataArr = contentModel?.list
|
|
|
|
playHistoryView.snp.updateConstraints { make in
|
|
make.top.equalToSuperview().offset(contentModel?.contentTop ?? 0)
|
|
}
|
|
}
|
|
}
|
|
|
|
private lazy var playHistoryView: SPHomePlayHistoryView = {
|
|
let view = SPHomePlayHistoryView()
|
|
return view
|
|
}()
|
|
|
|
|
|
|
|
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
|
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
|
|
|
contentView.addSubview(playHistoryView)
|
|
|
|
playHistoryView.snp.makeConstraints { make in
|
|
make.top.equalToSuperview().offset(0)
|
|
make.left.right.bottom.equalToSuperview()
|
|
make.height.equalTo(SPHomePlayHistoryView.contentToTop + 136)
|
|
}
|
|
}
|
|
|
|
@MainActor required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|