Hello!
I am an inexperienced programmer learning swiftUI and swiftData so apologies in advance if this answer can be found elsewhere.
I want to display a list of recent transcriptions, stored in modelContainer, in reversed order. I attempted to do transcriptionsList.reversed() in a ForEach (which is in a swiftUI List), but .onDelete gets messed up as it is deleting the items as per the normal order.
The question is, is there a way when using context.insert(), that I can specify to insert at index 0? Or is there a better way of resolving this?
Thanks in advance!
The code when pasted in here appears to not be formatted correctly so I didn't include code