You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the app uses a AVPictureInPictureController, the topmost method does not return the right UIViewController. When the video starts playing the AVPictureInPictureController creates two extra UIWindow.
var rootViewController: UIViewController?
let currentWindows = UIApplication.shared.windows
for window in currentWindows {
if let windowRootViewController = window.rootViewController {
rootViewController = windowRootViewController
break
}
}
The first UIWindow is not the key window, it is created by the Picture in Picture View Controller.
The text was updated successfully, but these errors were encountered:
If the app uses a AVPictureInPictureController, the topmost method does not return the right UIViewController. When the video starts playing the AVPictureInPictureController creates two extra UIWindow.
var rootViewController: UIViewController?
let currentWindows = UIApplication.shared.windows
The first UIWindow is not the key window, it is created by the Picture in Picture View Controller.
The text was updated successfully, but these errors were encountered: