Hi
If I understood correctly, by marking the model class with @MainActor, we ensure that all method are called on the main thread. Using the async {} closure syntax to start a async task when clicking the save button will also run on the main thread.
Would it be interesting and possible to use asyncDetached with a background priority? Or should we never use asyncDetached within swiftUI? Or do we reconcile asyncDetached with the @MainActor paradigm?
Then, what would happen if within the fetchPhotos method, we use concurrency with async let syntax to populate downloaded variable concurrently. This could be interesting if for instance the data we download from the internet is huge and take times to be processed. Are we going to use the different cores of our Mac?
Thank you Regards
Vincent