iOS Development, Swiftui, Ui Testing, Programming, Swift Programming.
application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { #if DEBUG if CommandLine.arguments.contains("-ui-test") { resetToDefaultState() } #endif return true } func resetToDefaultState() {...} } If your app uses