Files
Woka_Native_iOS/WOKA/Authentication/View/YourIntrestCell.swift

35 lines
800 B
Swift
Raw Normal View History

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-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-02 19:30:09 +05:30
}
override func layoutSubviews() {
outerView.roundCorner(radius: 20)
// outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
2024-05-02 19:30:09 +05:30
}
func setData(data : IntrestTopicDM.Result){
intrestLabel.text = data.topicName?.capitalized
2024-05-02 19:30:09 +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
}
}