Skip to content

Commit 602bce4

Browse files
committed
updated
1 parent 9c1e9f3 commit 602bce4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Package.resolved

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"repositoryURL": "https://github.com/flocked/FZSwiftUtils.git",
77
"state": {
88
"branch": "main",
9-
"revision": "0af8f9222fe5c6e804f366731afa1ad50fe00b86",
9+
"revision": "be173011326eb5107c3018db2fd99a54b5f0285b",
1010
"version": null
1111
}
1212
}

Sources/FZMetadata/MetadataItem/MetadataItem.swift

+4
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,15 @@ public class MetadataItem {
308308
public var finderTags: [String]? {
309309
get { value(for: \.finderTags)?.compactMap({$0.replacingOccurrences(of: "\n6", with:"")}) }
310310
set {
311+
#if os(macOS)
311312
if let url = url {
312313
url.resources.tags = newValue ?? []
313314
} else {
314315
setExplicity(\.finderTags, to: newValue?.compactMap({$0 + "\n6"}))
315316
}
317+
#else
318+
setExplicity(\.finderTags, to: newValue?.compactMap({$0 + "\n6"}))
319+
#endif
316320
}
317321
}
318322

0 commit comments

Comments
 (0)