SwiftData, Dataflow and Memory Leaks
I hope I am not posting a duplicate question here, but I am stuck and don’t really know how to debug this.
How to write Query with Predicate in SwiftUI detail view
I’m trying to write a @Query
with a custom Predicate in a SwiftUI detail view. When I click items in the list the app hangs and memory usage increases linearly forever.
Why is SwiftData @Query much slower with large datasets compared to FetchDescriptor?
I was load testing my app that lists some todos and essentially pre-populated database with 1000 records. This slowed things down in the app dramatically, tab switching felt sluggish and I pinpointed it down to using
SwiftData @Query crush when filter parameter is not nil?
I want use dynamically change the Predicate, so that different list can display different data. However, when I click the ‘NavigationLink’ to get in the ReminderListView()
then the app will get stuck, no responding,
How to define SwiftData #Index on an enum field?
I am implementing new #Index
macro announced at WWDC24 for SwiftData. This is simplified code for my model
How can I handle and save data when App will be shut down with swiftData?
I’m using swiftData in my App. When App will be closed, I need to query some data, handle it and save in swiftData. My plan is execute some code in applicationWillTerminate, but report error “failed to find a currently active container for ChartModel “