You know how we can have a different AppDelegate for running unit tests? Has anyone figured out setting up a different AppDelegate for Xcode Previews?
@danielkasaj Since you mentioned the unit tests, I thought you needed that too.
For previews, you can check the environment value "XCODE_RUNNING_FOR_PREVIEWS" on the running process. Here you can find a detailed guide how to use it:
https://sarunw.com/posts/detecting-xcode-previews