- Internet issue - Added api to get blogs, with data model decoding, inflating the collection view - Added api to get the songs, with data model decoding , inflated tableview with dynamic height - Added inline player for song list
34 lines
788 B
Swift
34 lines
788 B
Swift
//
|
|
// SongListCell.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 10/06/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SongListCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var ongoingTimeLabel: UILabel!
|
|
@IBOutlet weak var totalTimeLabel: UILabel!
|
|
@IBOutlet weak var songTitle: UILabel!
|
|
|
|
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 : SongBlogDM.PaintDatum){
|
|
self.totalTimeLabel.text = "/" + (data.songDuration ?? "0:00")
|
|
self.ongoingTimeLabel.text = "0:00"
|
|
self.songTitle.text = data.title!
|
|
}
|
|
|
|
}
|