-
-
Save laevandus/e4b32cfc7ca54581d7d5f989832d6305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@main | |
struct UITestingNetworkingApp: App { | |
var body: some Scene { | |
WindowGroup { | |
ContentView() | |
#if DEBUG | |
.onAppear(perform: { | |
guard CommandLine.arguments.contains("--uitesting") else { return } | |
UITestingNetworkHandler.register() | |
}) | |
#endif | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment