Post

Replies

Boosts

Views

Activity

Reply to List Rows Can Be Moved While Not Editing
Hi Sydney, Thank you very much for your reply! I have updated my code as per your advice, but it seems that the rows are still able to be moved even when the Edit button is not clicked. Below is my updated code for your reference: Thanks Best, Eugene @AppStorage("fruits") private var fruits = Fruits.fruits var body: some View { NavigationStack { VStack { List($fruits, editActions: .move) { $fruit in NavigationLink { FruitView(title: fruit.title) } label: { fruit.icon Text(fruit.title) } } .environment(\.defaultMinListRowHeight, UIElementConstants.listCellHeight) } .toolbar { EditButton() } .navigationTitle("Fruits") } } Instead of the List constructor above, I have also tried the same one from your code snippet as shown below: List($fruits, editActions: .move) { $fruit in NavigationLink(fruit.title) { FruitView(title: fruit.title) } } The second code block from my original post is untouched.
1w