How do you access SwiftData containers across modules?

I cannot test at the moment, but have not found documentation on this yet. I don't have a sense of how ModelContainer works across targets.

I have not, for example, seen a project with SwiftData unit tests yet.

If your iOS target's name is FooBoo, then in your unit test you can bring in the resources from the iOS app into the unit test like:

import SwiftData 

@testable import FooBoo

Then write code that makes calls into the FooBoo target classes you wish to evaluate.

How do you access SwiftData containers across modules?
 
 
Q