The following line throws a deprecation warning in iOS 15.
|
let window = UIApplication.shared.windows.first! |
This can be updated to:
guard let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = windowScene.windows.first
else { return }
The following line throws a deprecation warning in iOS 15.
episode-code-samples/0086-swiftui-snapshot-testing/PrimeTime/CounterTests/CounterTests.swift
Line 13 in 2f1621f
This can be updated to: