Post

Replies

Boosts

Views

Activity

Reply to swiftUI Unknown platform linking against CloudDocs framework 7
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")}) }
Jul ’21