Merge pull request #109478 from TCROC/fix-ios-auto-orientation

Fix screen_orientation not being assigned on ios
This commit is contained in:
Thaddeus Crews 2025-08-11 09:55:22 -05:00
commit 1ee48c5fde
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -662,6 +662,7 @@ void DisplayServerAppleEmbedded::screen_set_orientation(DisplayServer::ScreenOri
int screen_count = get_screen_count();
ERR_FAIL_INDEX(p_screen, screen_count);
screen_orientation = p_orientation;
if (@available(iOS 16.0, *)) {
[GDTAppDelegateService.viewController setNeedsUpdateOfSupportedInterfaceOrientations];
}