Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created July 10, 2022 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/e4b32cfc7ca54581d7d5f989832d6305 to your computer and use it in GitHub Desktop.
Save laevandus/e4b32cfc7ca54581d7d5f989832d6305 to your computer and use it in GitHub Desktop.
@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