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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
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)! }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
Reply to MIDI Drag-and-drop to Logic Pro via NSItemProvider
Still present in Logic Pro 11.2.1
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to SwiftData Document-based app produces strange write errors
I did not have that error before, but I get it now with the iOS 18 beta.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Changing TextEditor background color in SwiftUI for macOS
This hack is not necessary, this is the SwiftUI way: .scrollContentBackground(.hidden)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’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)! }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23