In SwiftUI, if you have a list you need to enable edit mode to get the reorder control to appear so you can reorder the rows (assuming you have added the .onMove modifier).
On iPad, you can reorder the rows without enabling EditMode, which stops any long press gestures from working.
Why is this behaviour so different, and is there a way to get the iPad to behave the same as iPhone?
TIA.
You can conditionally disable reordering to enable recognition of long press gesture on a row:
.onMove(perform: isEditing.wrappedValue ? move(from:to:) : nil)
where isEditing is a boolean binding to EditMode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With