Fix Your UIKit App's BIGGEST Testing Problem Now
Автор: StemFoxIO
Загружено: 2025-10-20
Просмотров: 60
Initialize unit testing in Swift the RIGHT way. Learn how to 10x your UIKit tests through better isolation and dependency management.
Watch This Next: • Testing
Video Links
UIApplicationMain:
https://developer.apple.com/documenta...
UIApplicationDelegate:
https://developer.apple.com/documenta...
Code:
/// Main File:
import UIKit
let appDelegateClass: AnyClass = NSClassFromString("TestAppDelegate") ?? AppDelegate.self
UIApplicationMain(
CommandLine.argc,
CommandLine.unsafeArgv,
nil,
NSStringFromClass(appDelegateClass)
)
/// New Test ApplicationDelegate
import UIKit
@objc(TestAppDelegate)
class TestAppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) → Bool {
print("~", "Test App Delegate")
return true
}
}
Connect with me!
X: https://x.com/StemFoxIO
Question - Have you ever setup a testing app delegate? Answer in the comments!
Want to learn more? Here are some sources I've learned from. Plus, some purchases help the channel (Affiliate Links).
I love Big Mountain Studio's books. Detailed and image oriented. Check them out here https://www.bigmountainstudio.com/a/y...
⏰ Timecodes ⏰
Inset timecodes here:
00:00 - Intro
00:17 - UIApplicationDelegate
03:00 - Testing App Delegate
04:15 - Setting Up main
05:39 - Outro
#swift, #ios #development, #software, #swiftui, #UIKit
(Insert hashtags for your channel/video here)
About:
StemFoxIO posts videos to help you become a better, more efficient iOS developer.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: