Skip to content

[BUG] CameraView on iOS: photo taken parallel to ground rotated 90 degrees #3242

Description

@zhitaop

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

This seems to be an edge case in addition to the scenarios fixed in #2311.

Opens the camera view at an angle where the device orientation sensor cannot determine if it's in portrait or landscape mode (e.g. when the device is parallel to the ground), the photo taken will be saved as landscape left.

With the same workflow in the iOS native camera app, the photo taken will be saved as portrait.

Image Image

Although the orientation sensor cannot differentiate between portrait and landscape in this scenario, the portrait orientation makes more sense according to common user habits/expectations.

Note: If you open the camera view while holding the device vertical to the ground in portrait mode, then point the camera to the ground, the image taken will be captured in portrait correctly.

Expected Behavior

Opens the camera view when the device is parallel to the ground, the photo taken should be saved as portrait orientation.

Steps To Reproduce

  1. Build and run the CommunityToolkit.Maui.Sample app on iOS
  2. Hold the device parallel to the ground, go to Views -> CameraView Page
  3. Tap "Capture Image"
  4. Observe that the image taken is saved as landscape left

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples

Environment

- .NET MAUI CommunityToolkit: v14.2.0
- .NET MAUI CommunityToolkit.Maui.Camera: v6.1.0
- OS: iOS 26.5
- .NET MAUI: 10.0.60

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions