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:
Brent Simmons committed 2026-05-28 09:28:06 -07:00
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)