Post

Replies

Boosts

Views

Activity

SwiftData & context
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?
1
0
274
Mar ’24
VoiceOver for SwiftUI List
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) {              } }
2
0
958
Feb ’23