Files
Woka_Native_iOS/WOKA/WebSeries/View/WebSeriesCell.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

41 lines
1.0 KiB
Swift

//
// WebSeriesCell.swift
// WOKA
//
// Created by MacBook Pro on 18/06/24.
//
import UIKit
class WebSeriesCell: UICollectionViewCell {
@IBOutlet weak var cellImage: UIImageView!
@IBOutlet weak var cellTitle: UILabel!
@IBOutlet weak var episodeSeason: UILabel!
@IBOutlet weak var outerStack: UIStackView!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func layoutSubviews() {
super.layoutSubviews()
outerStack.roundCorner(radius: 10)
cellImage.addBorderView(width: 0.5, color: .white)
}
func setData(data : ContinueWatchingDM.ResultData){
self.cellTitle.text = data.episodeTitle
let seasonNumer = "S" + (data.seasonNumber ?? "0")
let episodeNumer = "E" + (data.episodeNumber?.toString() ?? "0")
self.episodeSeason.text = seasonNumer + "-" + episodeNumer
if let url = data.thumbnailPath{
cellImage.imageURL(url , color: .black)
}
}
}