Hello Developers,
So I am having a problem, I wanted to do some computation after I have called context.save() but looking at context.changedModelsArray i see that there is no models that have changed. I have also checked insertedModelsArray and deletedModelsArray and all they're empty. Does swiftdata not support or keep track of the models being deleted/changed/inserted?
Post
Replies
Boosts
Views
Activity
Hello,
I am having an issue at the moment. I noticed for iOS 15 when you have made a list using SwiftUI, VoiceOver would describe which cell is being moved to adjacent to it. Now with iOS 16 it VoiceOver doesn't say anything while being moved up or down. Here is a sample code of what I am speaking of.
struct SampleView: View {
let alphabetArray = ["a", "b", "c", "d", "e", "f"]
var body: some View {
List {
ForEach(alphabetArray, id: \.self) { letter in
Text(verbatim: letter)
}
.onMove(perform: move)
}
.environment(\.editMode, .constant(.active))
}
private func move(from source: IndexSet, to destination: Int) {
}
}