Hello,
On iOS 15, I had a feature who allow the user to reorder some items inside of a list. Some view was not allowed to move (I use the modifier .moveDisabled
for this behavior).
In iOS 15, everything was working fine : I'm able to reorder items inside of the list (only for those who was allowed to be moved).
But in iOS 16, I have a strange behavior : I still can reorder items, but if two items are not allowed to be reordered, I can't move any items between them.
Here is the example :
iOS 15 :
iOS 16 :
For this feature, I only use:
- standard SwiftUI
List
. .environment(\.editMode, .constant(.active))
(the view should always be editable)..moveDisabled()
to allow items to be moved.
No custom element here, everything is SwiftUI framework.
What am I doing wrong?
Thanks,
Alexandre