In earlier times, it was possible to create a 'main' replacement that checked if it was called by tests. Then, you could start with the regular 'AppDelegate', or with a special one for the tests. How can I achieve this for the new '@main' stuff? For instance, to be able to set up different CoreData instances for test and production?

Helping companies and humans to evolve, and trying to be agile in an own product development.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store