2024-05-02 19:27:51 +05:30
|
|
|
//
|
|
|
|
|
// YourIntrestCell.swift
|
|
|
|
|
// WOKA
|
|
|
|
|
//
|
|
|
|
|
// Created by MacBook Pro on 02/05/24.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
class YourIntrestCell: UICollectionViewCell {
|
2024-05-08 19:36:20 +05:30
|
|
|
|
2024-05-02 19:30:09 +05:30
|
|
|
@IBOutlet weak var outerView: UIView!
|
|
|
|
|
@IBOutlet weak var intrestLabel: UILabel!
|
|
|
|
|
|
2024-05-02 19:27:51 +05:30
|
|
|
override func awakeFromNib() {
|
|
|
|
|
super.awakeFromNib()
|
2024-05-08 19:36:20 +05:30
|
|
|
|
2024-05-02 19:30:09 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func layoutSubviews() {
|
|
|
|
|
outerView.roundCorner(radius: 20)
|
2024-05-08 19:36:20 +05:30
|
|
|
// outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
|
2024-05-02 19:30:09 +05:30
|
|
|
}
|
|
|
|
|
|
2024-05-07 19:33:29 +05:30
|
|
|
func setData(data : IntrestTopicDM.Result){
|
|
|
|
|
intrestLabel.text = data.topicName?.capitalized
|
2024-05-02 19:30:09 +05:30
|
|
|
|
2024-05-07 19:33:29 +05:30
|
|
|
if data.isSelected!{
|
2024-05-02 19:30:09 +05:30
|
|
|
outerView.backgroundColor = UIColor.white
|
|
|
|
|
}else{
|
|
|
|
|
outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
|
|
|
|
|
}
|
2024-05-02 19:27:51 +05:30
|
|
|
}
|
|
|
|
|
}
|