Thanks for the explanation guys. The reason for the test was that I had similar code in my application. I create the ModelContainer in my App and set it on my DataManager, but it would be nil when trying to use it. It was tricky to find the issue.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: