Skip to content

Commit e219b8f

Browse files
committed
revert a part of PR #72
* because the test app did not always react properly to orientation changes on iOS 26 (i.e. the camera preview did not rotate properly when changing from portrait to landscape orientation) * the obsolescence warning returns, but at least things work properly this way on iOS 26
1 parent 6c5303e commit e219b8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Camera.MAUI/Apple/MauiCameraView.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ private void UpdateTransform()
690690

691691
if (windowScene != null)
692692
{
693-
if (OperatingSystem.IsIOSVersionAtLeast(26))
694-
orientation = windowScene.EffectiveGeometry.InterfaceOrientation;
695-
else
696-
orientation = windowScene.InterfaceOrientation;
693+
// if (OperatingSystem.IsIOSVersionAtLeast(26))
694+
// orientation = windowScene.EffectiveGeometry.InterfaceOrientation;
695+
// else
696+
orientation = windowScene.InterfaceOrientation;
697697
}
698698
}
699699
if (orientation == UIInterfaceOrientation.Unknown)

0 commit comments

Comments
 (0)