ThimraTV/MoviaBox/Class/Wallet/View/SPCoinRechargeSmallCell.swift
2025-06-18 19:26:21 +08:00

51 lines
1.5 KiB
Swift

//
// SPCoinRechargeSmallCell.swift
// MoviaBox
//
// Created by on 2025/6/18.
//
import UIKit
class SPCoinRechargeSmallCell: SPCoinRechargeCell {
override var sp_isSelected: Bool {
didSet {
if sp_isSelected {
containerView.image = UIImage(named: "recharge_bg_image_01")
} else {
containerView.image = UIImage(named: "recharge_bg_image_02")
}
}
}
override init(frame: CGRect) {
super.init(frame: frame)
coinIconImageView.image = UIImage(named: "coin_icon_07")
ratioBgView.image = UIImage(named: "mark_bg_icon_02")
moneyBgView.colors = [UIColor.color000000(alpha: 0.8).cgColor, UIColor.color000000(alpha: 0.8).cgColor, UIColor.color000000(alpha: 0.8).cgColor]
moneyBgView.layer.cornerRadius = 10
moneyLabel.textColor = .colorFFCF93()
coinLabel.font = .fontBold(ofSize: 20)
ratioLabel.font = .fontRegular(ofSize: 11)
ratioLabel.textColor = .colorFFCF93()
coinBgView.snp.updateConstraints { make in
make.top.equalToSuperview().offset(34)
}
moneyBgView.snp.remakeConstraints { make in
make.bottom.equalToSuperview().offset(-2)
make.centerX.equalToSuperview()
make.left.equalToSuperview().offset(2)
make.height.equalTo(30)
}
}
@MainActor required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}