File tree 2 files changed +5
-1
lines changed
Sources/FZMetadata/MetadataItem
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
"repositoryURL" : " https://github.com/flocked/FZSwiftUtils.git" ,
7
7
"state" : {
8
8
"branch" : " main" ,
9
- "revision" : " 0af8f9222fe5c6e804f366731afa1ad50fe00b86 " ,
9
+ "revision" : " be173011326eb5107c3018db2fd99a54b5f0285b " ,
10
10
"version" : null
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -308,11 +308,15 @@ public class MetadataItem {
308
308
public var finderTags : [ String ] ? {
309
309
get { value ( for: \. finderTags) ? . compactMap ( { $0. replacingOccurrences ( of: " \n 6 " , with: " " ) } ) }
310
310
set {
311
+ #if os(macOS)
311
312
if let url = url {
312
313
url. resources. tags = newValue ?? [ ]
313
314
} else {
314
315
setExplicity ( \. finderTags, to: newValue? . compactMap ( { $0 + " \n 6 " } ) )
315
316
}
317
+ #else
318
+ setExplicity ( \. finderTags, to: newValue? . compactMap ( { $0 + " \n 6 " } ) )
319
+ #endif
316
320
}
317
321
}
318
322
You can’t perform that action at this time.
0 commit comments