SwiftUI delete rows from a list
问题 As you can see from the image I have a list of colors, I would like to be able to also give the possibility to delete a color from the array . I tried to add a list and then call the onDelete call on ForEach , but it's not working well it gives me problems. Then in addition to this I would like the list to be the size of the contained elements. Error: Fatal error: Index out of range: file Swift/ContiguousArrayBuffer.swift, line 444 Can anyone give me some advice? Code: import SwiftUI struct