CommunityToolkit / CommunityToolkit/Maui

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

Open
#3,242 0 comments 0 reactions 0 assignees View on GitHub
bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

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

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

This seems to be an edge case in addition to the scenarios fixed in https://github.com/CommunityToolkit/Maui/issues/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

```markdown
- .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_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the CommunityToolkit.Maui.Sample app by opening Views → CameraView Page on iOS with the device parallel to the ground. Find the CameraView implementation and its orientation handling, compare the related fix in issue #2311, and verify that a ground-facing capture is saved as portrait while existing orientation scenarios remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.