Skip to content

Commit 74275a9

Browse files
authored
(144239125) Re-add existing SPI for enumerating NSAttributedString.Key runs (#1162)
1 parent 1dc45d3 commit 74275a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/FoundationEssentials/AttributedString/AttributedString+Runs+AttributeSlices.swift

+5
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,11 @@ extension AttributedString.Runs {
781781
}
782782
}
783783

784+
@_spi(AttributedString)
785+
public subscript(nsAttributedStringKeys keys: NSAttributedString.Key...) -> NSAttributesSlice {
786+
self[nsAttributedStringKeys: keys]
787+
}
788+
784789
@_spi(AttributedString)
785790
public subscript(nsAttributedStringKeys keys: [NSAttributedString.Key]) -> NSAttributesSlice {
786791
return NSAttributesSlice(runs: self, names: keys.map { $0.rawValue })

0 commit comments

Comments
 (0)