Subscribed channels list in tab navigation

This commit is contained in:
Arkadiusz Fal
2022-12-11 12:38:57 +01:00
parent 7ba743afbc
commit 5e0f13cace
28 changed files with 566 additions and 222 deletions

View File

@@ -113,14 +113,16 @@ struct Channel: Identifiable, Hashable {
var json: JSON {
[
"id": id,
"name": name
"name": name,
"thumbnailURL": thumbnailURL?.absoluteString ?? ""
]
}
static func from(_ json: JSON) -> Self {
.init(
id: json["id"].stringValue,
name: json["name"].stringValue
name: json["name"].stringValue,
thumbnailURL: json["thumbnailURL"].url
)
}
}