杨锴
2024-09-13 9ac9fdb427af823fcafe945a19ba83befe462dfb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  TreeTeskEnergyTCell.swift
//  XQMuse
//
//  Created by 无故事王国 on 2024/9/11.
//
 
import UIKit
import JQTools
 
class TreeTeskEnergyTCell: UITableViewCell {
 
                @IBOutlet weak var view_container: UIView!
 
                override func awakeFromNib() {
        super.awakeFromNib()
                                selectionStyle = .none
    }
 
                override func layoutSubviews() {
                                super.layoutSubviews()
                                view_container.jq_addShadows(shadowColor: UIColor(hexString: "#EBEBEB")!, corner: 10, radius: 4, offset: CGSize(width: 0, height: 2), opacity: 1)
                }
 
                func isExchanged(_ state:Bool){
                                view_container.alpha = state == true ? 0.5:1
                }
}