mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Do icon prefetch instead of on demand by cell, add activity reporting for downloading images, add CloudKit no change back-off, and remove backslashes from HTMLMetadata JSON encoding.
This commit is contained in:
1 parent
662c18bb5f
commit
49c23da9e0
15 files changed
+184
-8
No files matched your search
@@ -99,8 +99,13 @@ private extension HTMLMetadataTable {
|
||||
)
|
||||
}
|
||||
|
||||
static func jsonString<T: Encodable>(_ value: T) -> String? {
|
||||
guard let data = try? JSONEncoder().encode(value) else {
|
||||
static func jsonString<T: Encodable>(_ values: [T]) -> String? {
|
||||
if values.isEmpty {
|
||||
return nil
|
||||
}
|
||||
let encoder = JSONEncoder()
|
||||
encoder.outputFormatting = .withoutEscapingSlashes
|
||||
guard let data = try? encoder.encode(values) else {
|
||||
return nil
|
||||
}
|
||||
return String(data: data, encoding: .utf8)
|
||||
|
||||
Reference in new issue
Block a user