Post

Replies

Boosts

Views

Activity

Reply to iOS 18 changes the order of Document-based SwiftUI document reading and view loading?
Yes, I have many issues too when I build my app with XCode 16. To be exact, running on iOS 18 is fine though. It's good as long as it's built with the older Xcode 15. As far as I know, these changes affect iOS 18 but not macOS 15 Sequoia. I have submitted a bug as well. I would really like to understand the motivation for such a radical change. And see some official migration recommendations.
Sep ’24
Reply to Drag file from app to Finder on macOS
I think you misunderstand the purpose of FileRepresentation. I know I did. It is not for dragging file objects, it is for storing drag data in a file rather than memory. This works for me on macOS for dragging between apps. It's missing something to work with the Finder though. DataRepresentation(exportedContentType: .fileURL) { item in let url = URL(string:"test")! return url.absoluteString.data(using: .utf8)! }
Mar ’23