Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
static var keyWindow: UIWindow? {
let allScenes = UIApplication.shared.connectedScenes
for scene in allScenes {
guard let windowScene = scene as? UIWindowScene else { continue }
for window in windowScene.windows where window.isKeyWindow {
return window
}
}
return nil
}