Files
Woka_Native_iOS/WOKA/WebSeries/View/WebSeriesEpisodeCell.swift
Bilal 1f650bd2b7 - added api for fetching the episode as per the selected category
- made the category collection cells dynamic
- handled the category selection will call the episode api
- solved activity indicator view at the splash start-up
- handled the app lifecycle for live tv app going in foreground and background
- handled play pause while the live tv view apperas and disappears
- Made the likes and favourites dynamic on episode screen
2024-06-21 19:35:40 +05:30

43 lines
1.2 KiB
Swift

//
// WebSeriesEpisodeCell.swift
// WOKA
//
// Created by Bilal on 21/06/2024.
//
import UIKit
class WebSeriesEpisodeCell: UITableViewCell {
@IBOutlet weak var seasonImage: UIImageView!
@IBOutlet weak var seasonTitle: UILabel!
@IBOutlet weak var seasonTime: UILabel!
@IBOutlet weak var playBtn: UIButton!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
func setData(data : SeasonEpisodeListingDM.ResultData){
if let url = data.thumbnailPath{
self.seasonImage.imageURL(url, color: UIColor.appColor(.TextDarkBlue)!)
}
if AuthFunc.shareInstance.getDefaultLanguage() == .english{
seasonTitle.text = data.seasonMoreDetails?.filter({$0.languageMasterID == 1}).first?.title
}else{
seasonTitle.text = data.seasonMoreDetails?.filter({$0.languageMasterID == 2}).first?.title
}
}
@IBAction func playBtnTapped(_ sender: UIButton) {
}
}