Files
Woka_Native_iOS/WOKA/Authentication/View/YourIntrestCell.swift
2024-05-02 19:30:09 +05:30

35 lines
758 B
Swift

//
// YourIntrestCell.swift
// WOKA
//
// Created by MacBook Pro on 02/05/24.
//
import UIKit
class YourIntrestCell: UICollectionViewCell {
@IBOutlet weak var outerView: UIView!
@IBOutlet weak var intrestLabel: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
}
override func layoutSubviews() {
outerView.roundCorner(radius: 20)
// outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
}
func setData(text : String,selected : Bool){
intrestLabel.text = text
if selected{
outerView.backgroundColor = UIColor.white
}else{
outerView.backgroundColor = UIColor.white.withAlphaComponent(0.5)
}
}
}