Before, when we could check:
And then load a "testing AppDelegate" instead of the app's one on main.swift, so you could avoid making extra configurations that just add overhead when running unit tests.
I think it's not possible to have 2 @main structs, how should we achieve this now?
Thank you.
Code Block swift let isRunningTests = NSClassFromString("XCTestCase") != nil
And then load a "testing AppDelegate" instead of the app's one on main.swift, so you could avoid making extra configurations that just add overhead when running unit tests.
I think it's not possible to have 2 @main structs, how should we achieve this now?
Thank you.