Post

Replies

Boosts

Views

Activity

Reply to SwiftUI fileImporter vs dropDestination logic
@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:
Nov ’24
Reply to SwiftUI fileImporter vs dropDestination logic
@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:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Can't Install Predictive Code Completion Model in Xcode
And it's back! I opened Xcode and was again met with the download window and subsequent failure. My feedback FB15398248 is still open and unanswered.
Replies
Boosts
Views
Activity
Oct ’24
Reply to Can't Install Predictive Code Completion Model in Xcode
FWIW this problem resolved itself earlier this week.
Replies
Boosts
Views
Activity
Oct ’24