More info:
no messages until metadataQuery.start()
all messages before: print("notification Received from metadata query"
.publisher(for: NSNotification.Name.NSMetadataQueryDidFinishGathering,object: nil)
metadataQuery = NSMetadataQuery()
metadataQuery.searchScopes = [NSMetadataQueryUbiquitousDocumentsScope]
metadataQuery.predicate = NSPredicate(format: "(%K LIKE 'Saved.plist') OR (%K CONTAINS 'Album') ",NSMetadataItemFSNameKey,NSMetadataItemFSNameKey)//071918c
metadataQuery.start()
albumlistPublisher.sink(receiveCompletion: { _ in
print("notification Received from metadata query")}
, receiveValue: { Value in
let query = (Value.object as! NSMetadataQuery)
print("albumListPublisherSink: found \(query.resultCount) albums")
print("notification Received from metadata query")})
}
Post
Replies
Boosts
Views
Activity
Thanks. Saving borderwidth under a separate key solved my problem. I still don’t understand why the borderwidth was not archived with UITextView though