Skip to content

Instantly share code, notes, and snippets.

@jonreid
Last active January 1, 2024 21:50
Show Gist options
  • Save jonreid/32005c10f79e0a69f2a5160e1f351f2b to your computer and use it in GitHub Desktop.
Save jonreid/32005c10f79e0a69f2a5160e1f351f2b to your computer and use it in GitHub Desktop.
Step 2, change appDelegateClass dynamically per https://qualitycoding.org/ios-app-delegate-testing/
import UIKit
let appDelegateClass: AnyClass = NSClassFromString("TestingAppDelegate") ?? AppDelegate.self
UIApplicationMain(CommandLine.argc, CommandLine.unsafeArgv, nil, NSStringFromClass(appDelegateClass))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment