From 5744293775c62ce4e46f770c381f803c9a78ac33 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 19 Jan 2025 17:58:55 -0800 Subject: [PATCH] Make .htmlMetadataAvailable Notification public. --- Modules/RSWeb/Sources/RSWeb/HTMLMetadataCache.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataCache.swift b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataCache.swift index b213212d2..bfe3bbb78 100644 --- a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataCache.swift +++ b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataCache.swift @@ -9,19 +9,19 @@ import Foundation import Parser import RSCore -extension Notification.Name { +public extension Notification.Name { // Sent when HTMLMetadata is cached. Posted on any thread. static let htmlMetadataAvailable = Notification.Name("htmlMetadataAvailable") } -final class HTMLMetadataCache: Sendable { +public final class HTMLMetadataCache: Sendable { static let shared = HTMLMetadataCache() // Sent along with .htmlMetadataAvailable notification - struct UserInfoKey { - static let htmlMetadata = "htmlMetadata" - static let url = "url" // String value + public struct UserInfoKey { + public static let htmlMetadata = "htmlMetadata" + public static let url = "url" // String value } private struct HTMLMetadataCacheRecord: CacheRecord {