Forms improvements for trending and playlists

This commit is contained in:
Arkadiusz Fal
2021-08-16 17:52:42 +02:00
parent 2942119136
commit 09c3947fef
12 changed files with 379 additions and 189 deletions

View File

@@ -22,6 +22,13 @@ struct Playlist: Identifiable, Equatable, Hashable {
var videos = [Video]()
init(id: String, title: String, visibility: Visibility, updated: TimeInterval) {
self.id = id
self.title = title
self.visibility = visibility
self.updated = updated
}
init(_ json: JSON) {
id = json["playlistId"].stringValue
title = json["title"].stringValue