Files
Woka_Native_iOS/WOKA/Theme/View/HomeExploreCell.swift
BilalKhanWDI 1d6add0322 - Added DropDown
- Added api for show listing , made data model, updated the dropdown
- Added api for category, made data model
- Made the dynamic height tableview to show all the shows
- On fav add remove , will refresh the mylist screen
- Added default load on hindi
- On category selection change, updating the show list data
- Handled the fav category id as int, string , string seeprated with “,”
- Modifying my list with bookmark id with above
2024-06-19 20:07:47 +05:30

40 lines
1007 B
Swift

//
// HomeExploreCell.swift
// WOKA
//
// Created by Bilal on 24/05/2024.
//
import UIKit
class HomeExploreCell: UICollectionViewCell {
@IBOutlet weak var cellBtn: UIImageView!
@IBOutlet weak var cellLabel: LocalisedElementsLabel!
@IBOutlet weak var mainView: UIView!
override func awakeFromNib() {
super.awakeFromNib()
// self.addTapGesture { [weak self] in
// guard let self else{return}
// btnTap()
// }
}
func btnTap(){
UIView.animate(withDuration: 0.1, animations: {
self.mainView.transform = CGAffineTransform(scaleX: 0.9, y: 0.9)
}) { _ in
UIView.animate(withDuration: 0.1) {
self.mainView.transform = .identity
}
}
}
func setData(data : Theme2Struct){
self.cellBtn.image = UIImage(named: data.imageName)
self.cellLabel.text = data.text.localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
}
}