Locking App Orientation to Landscape in Playground

Hello!

I’m building my Swift Student Challenge project in Swift Playgrounds, and I’ve run into an issue with app orientation.

Since this is a game, the layout and interactions only work correctly in landscape, but Playgrounds doesn’t offer the usual orientation settings you’d configure in Xcode.

Is there a recommended way to force a landscape-only experience in Swift Playgrounds using SwiftUI? Any workarounds or guidance would be greatly appreciated!

Thank you!

Locking App Orientation to Landscape in Playground
 
 
Q