mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Subscribed channels list in tab navigation
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user