heyjaywilson / peakfit

Strength exercise iOS app written in Swift
Apache License 2.0
16 stars 11 forks source link

Ensure all writing to swiftdata models occurs on the model actor #38

Closed heyjaywilson closed 1 month ago

heyjaywilson commented 1 month ago

To keep a separation of concerns, all writing to swiftdata models should occur on the ModelActor. This allows for writing to occur on a background thread and populate through to the rest of the app.