Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 74275a9

Browse files
authoredFeb 5, 2025
(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

Lines changed: 5 additions & 0 deletions
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)
Please sign in to comment.