While moving the last operation into the background, I encountered the strange problem that my #ModelActor actually runs on MainActor. π₯² I'll be reading (again)
@mattiem's article about ModelActor to understand what's going on tomorrow. I don't have energy for that today. π
#SwiftData
Aleksander Stojanowski (@[email protected])
Took a deep dive into SwiftData today! πββοΈπΎ Moved operations to background threads, including the heavyweight streak recalculation. Was feeling pretty proud until I noticed the βautomagicβ SwiftUI animations vanished! π± #SwiftData #iOSPerformance