Commit 3f7a8e08 authored by Soomin Lee's avatar Soomin Lee

VLCEditController: Fill cell with VLCMLMedia

parent dbabddeb
......@@ -63,10 +63,11 @@ extension VLCEditController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
if let cell = collectionView.dequeueReusableCell(withReuseIdentifier: VLCMediaViewEditCell.identifier,
for: indexPath) as? VLCMediaViewEditCell {
cell.titleLabel.text = "( `ー´)ノ"
cell.subInfoLabel.text = "(-ω-、)"
cell.sizeLabel.text = "|ω°•)"
cell.thumbnailImageView.image = UIImage(named: "vlc-xmas")
if let media = category.anyfiles[indexPath.row] as? VLCMLMedia {
cell.titleLabel.text = media.title
cell.subInfoLabel.text = media.formatDuration(ofMedia: media)
cell.sizeLabel.text = media.formatSize(ofMedia: media)
}
return cell
}
return UICollectionViewCell()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment