- 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
27 lines
555 B
Swift
27 lines
555 B
Swift
//
|
|
// BlogsCell.swift
|
|
// WOKA
|
|
//
|
|
// Created by MacBook Pro on 10/06/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class BlogsCell: UICollectionViewCell {
|
|
|
|
@IBOutlet weak var blogImage: UIImageView!
|
|
@IBOutlet weak var blogTitle: UILabel!
|
|
@IBOutlet weak var outerView: UIView!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
outerView.roundCorner(radius: 10)
|
|
// Initialization code
|
|
}
|
|
|
|
func setData(data : BlogDM.Blog){
|
|
self.blogImage.imageURL(data.thumbnailPath!)
|
|
self.blogTitle.text = data.title
|
|
}
|
|
}
|