All the docs say that @main generates a main() method for SwiftUI, replacing the need for a main.swift. I can't find a reference for what is actually generated. I'd like to override the initial bootstrapping of the app during unit testing for code coverage purposes. The way we've done this in the past uses UIApplicationMain to dynamically control the app delegate in main.swift.
I've looked through the headers, but the App class just has a declaration for main() but the implementation is not available.
How can I do something similar with SwiftUI. Is there an analogous call to UIApplicationMain?
I've looked through the headers, but the App class just has a declaration for main() but the implementation is not available.
How can I do something similar with SwiftUI. Is there an analogous call to UIApplicationMain?