Having similar problems trying to get multi drag and drop to work in SwiftUI on iOS. I thought this was finally added in iOS 26, but it wasn't? Extremely difficult to find a way to get this done. Plus Xcode constantly complains that the the method is deprecated or explicitly marked as not available here.
Is mult item drag and drop supported now in iOS 26 for now List containers? or was that only added for Mac OS 26?
I think I got. I looked in my app intents and if you have
import AppIntents and
import MediaPlayer
it will fail.
Remove import MediaPlayer and it compiles.
now on to the next problem :|
I guess I should be using betas and providing feedback. I did notice that practically all of the apple apps do not use a navigation stack like this. It is always light mode with full screen sheets.
For instance
.draggable(dragHelper.begin(source: pd, section.firstIndex(of: pd))) {
/* this drag Preview can't be updated while it is dragged around */
DragPreview()
}
this doesn't answer the question and maybe it has been fixed since. I am just here to say thanks for that code sample. I was having problems with a list that supports multiple select and then showing an alert. The alert would cause the edit mode to toggle and the selections to be clear. I hadn't see the .environment like you have it. That fixes my issue. Thank you
Having similar problems trying to get multi drag and drop to work in SwiftUI on iOS. I thought this was finally added in iOS 26, but it wasn't? Extremely difficult to find a way to get this done. Plus Xcode constantly complains that the the method is deprecated or explicitly marked as not available here.
Is mult item drag and drop supported now in iOS 26 for now List containers? or was that only added for Mac OS 26?
I think I got. I looked in my app intents and if you have
import AppIntents and
import MediaPlayer
it will fail.
Remove import MediaPlayer and it compiles.
now on to the next problem :|
I guess I should be using betas and providing feedback. I did notice that practically all of the apple apps do not use a navigation stack like this. It is always light mode with full screen sheets.
For instance
.draggable(dragHelper.begin(source: pd, section.firstIndex(of: pd))) {
/* this drag Preview can't be updated while it is dragged around */
DragPreview()
}
this doesn't answer the question and maybe it has been fixed since. I am just here to say thanks for that code sample. I was having problems with a list that supports multiple select and then showing an alert. The alert would cause the edit mode to toggle and the selections to be clear. I hadn't see the .environment like you have it. That fixes my issue. Thank you