Skip to content

Commit 78cc639

Browse files
authored
AttributeScope and AttributedStringKey should conform to SendableMetatype (#1607)
1 parent 8685dda commit 78cc639

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/FoundationEssentials/AttributedString/AttributeScope.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// }
1818
// An AttributeScope can contain other scopes as well.
1919
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
20-
public protocol AttributeScope : DecodingConfigurationProviding, EncodingConfigurationProviding {
20+
public protocol AttributeScope : DecodingConfigurationProviding, EncodingConfigurationProviding, SendableMetatype {
2121
static var decodingConfiguration: AttributeScopeCodableConfiguration { get }
2222
static var encodingConfiguration: AttributeScopeCodableConfiguration { get }
2323
}

Sources/FoundationEssentials/AttributedString/AttributedStringAttribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extension AttributedString {
9595

9696
// Developers define new attributes by implementing AttributeKey.
9797
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
98-
public protocol AttributedStringKey {
98+
public protocol AttributedStringKey : SendableMetatype {
9999
associatedtype Value : Hashable
100100
static var name : String { get }
101101

0 commit comments

Comments
 (0)