Implementing external monitor support in SwiftUI
问题 I'm confused about implementing external monitor support via Airplay with SwiftUI. In SceneDelegate.swift I'm using UIScreen.didConnectNotification observer and it actually detects a new screen being attached but I'm unable to assign a custom UIScene to the screen. I found a few good examples using Swift with iOS12 and lower, but none of them work in SwiftUI, since the whole paradigm has been changed to use UIScene instead of UIScreen. Here's the list: https://www.bignerdranch.com/blog/adding