How to show a SwiftUI View on an external screen?

In UIKit, UIScreen and UIWindow APIs exist to show a custom UIView on a connected screen (e. g. Lightning to HDMI adapter) instead of mirroring my app's UI.

I would like to achieve the same using the new SwiftUI App Lifecycle, and I have not found any documentation on how to achieve it. How can I show a SwiftUI View on an external screen?
Answered by conath in 618027022
I have succeeded with my SwiftUI on external display goal. However I had to use the UIKit App Lifecycle. The app is open source on GitHub: TheatricalMovieTrailers
Accepted Answer
I have succeeded with my SwiftUI on external display goal. However I had to use the UIKit App Lifecycle. The app is open source on GitHub: TheatricalMovieTrailers
How to show a SwiftUI View on an external screen?
 
 
Q