Skip to content

Respect host iOS orientation policy - #106

Open
tryk016 wants to merge 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-ios-orientation-policy-refresh
Open

tryk016 wants to merge 1 commit into
Try:masterfrom
tryk016:codex/pr-tempest-ios-orientation-policy-refresh

Conversation

@tryk016

@tryk016 tryk016 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Remove the app delegate override that always returns UIInterfaceOrientationMaskAll, so UIKit respects the app's Info.plist. The view controller still supports all orientations.

Tested on iOS 18 and 27 simulators: master rotates a landscape-only app to portrait; this change keeps it landscape. macOS tests and iPhoneOS/Simulator Release builds pass.

@Try

Try commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Should it be other way around?

Since Tempest is designed for cross-platform C++ development, have a generic Window::setAllowedOrientations, is probably more preferable? This is more or less what Qt/SDL are doing.

@tryk016

tryk016 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

The goal of this PR was just to restore UIKit’s default behavior and respect the app’s Info.plist orientation settings. A C++ setter makes sense for runtime control too, but fixing the ignored settings doesn’t require a new API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants