Skip to content

Commit 7ab3fb0

Browse files
itingliuAaron Burghardt
andauthored
Swift URL and URLResourceValues have no method for changing tags on a file (#1396)
Resolves 33478651 Co-authored-by: Aaron Burghardt <[email protected]>
1 parent 7a0e78f commit 7ab3fb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/FoundationEssentials/URL/URL.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,11 @@ public struct URLResourceValues {
274274

275275
#if os(macOS)
276276
/// The array of Tag names.
277-
public var tagNames: [String]? { return _get(.tagNamesKey) }
277+
public var tagNames: [String]? {
278+
get { return _get(.tagNamesKey) }
279+
@available(macOS 26.0, *)
280+
set { _set(.tagNamesKey, newValue: newValue) }
281+
}
278282
#endif
279283

280284
/// The URL's path as a file system path.

0 commit comments

Comments
 (0)