I use Simone´s solution to store string arrays and present them in a List:
How to Store Nested Arrays in @AppStorage for SwiftUI
I tried to add a row delete function to the List:
.onDelete(perform: removeRows)
func removeRows(at offsets: IndexSet) {
getStrings(data: albums).remove(atOffsets: offsets)
}
I understand that this does not work because the function call returns an immutable value and I try to mutate it. How to resolve that?