@Moonfish I was struggling with the same problem and stumbled upon a solution. If you take the URLs from dropDestination and convert them all to bookmark data and then back into URLs the new URLs will work as expected.
let bookmarks: [Data] = urls.compactMap {
try? $0.bookmarkData(options: [.withSecurityScope, .securityScopeAllowOnlyReadAccess])
}
let urlsFromBookmarks: [URL] = bookmarks.compactMap {
var stale = false
return try? URL(resolvingBookmarkData: $0, options: [.withSecurityScope], bookmarkDataIsStale: &stale)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: