From faeb5c4f56e2e3f670daf71c468138025033f035 Mon Sep 17 00:00:00 2001 From: Jeremy Schonfeld Date: Mon, 17 Nov 2025 11:11:51 -0800 Subject: [PATCH] AttributeScope and AttributedStringKey should conform to SendableMetatype --- .../FoundationEssentials/AttributedString/AttributeScope.swift | 2 +- .../AttributedString/AttributedStringAttribute.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/FoundationEssentials/AttributedString/AttributeScope.swift b/Sources/FoundationEssentials/AttributedString/AttributeScope.swift index d2c47b18d..352601b8d 100644 --- a/Sources/FoundationEssentials/AttributedString/AttributeScope.swift +++ b/Sources/FoundationEssentials/AttributedString/AttributeScope.swift @@ -17,7 +17,7 @@ // } // An AttributeScope can contain other scopes as well. @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) -public protocol AttributeScope : DecodingConfigurationProviding, EncodingConfigurationProviding { +public protocol AttributeScope : DecodingConfigurationProviding, EncodingConfigurationProviding, SendableMetatype { static var decodingConfiguration: AttributeScopeCodableConfiguration { get } static var encodingConfiguration: AttributeScopeCodableConfiguration { get } } diff --git a/Sources/FoundationEssentials/AttributedString/AttributedStringAttribute.swift b/Sources/FoundationEssentials/AttributedString/AttributedStringAttribute.swift index ec6cc8487..8a5b52428 100644 --- a/Sources/FoundationEssentials/AttributedString/AttributedStringAttribute.swift +++ b/Sources/FoundationEssentials/AttributedString/AttributedStringAttribute.swift @@ -95,7 +95,7 @@ extension AttributedString { // Developers define new attributes by implementing AttributeKey. @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) -public protocol AttributedStringKey { +public protocol AttributedStringKey : SendableMetatype { associatedtype Value : Hashable static var name : String { get }