dotnet / dotnet/maui

CarouselView Orientation is Vertical even when set to Horizontal

Open
#7,496 5 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview platform/ios s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

On iOS the CarouselView Items are rendered Vertically even when the orientation is set to Horizontal. This issue is very difficult to reproduce becuase it happen with certain layouts and don't with another ones.
The commercial app that I am developing this issue is a major obstacle. I don't able to change this behaviour in my app. Although in simple apps like the repro project attached with this issue it can be resolved with few changes.

### Steps to Reproduce

Run the repro project.
[MauiRepro.zip](https://github.com/dotnet/maui/files/8778893/MauiRepro.zip)

### Version with bug

6.0 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

iOS

### Affected platform versions

iOS 15

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by running the attached MauiRepro.zip project on iOS 15 and observing the CarouselView with its orientation set to Horizontal. Compare the layouts that reproduce the vertical rendering with those that do not, then trace the CarouselView layout behavior. Done means the repro consistently renders items horizontally on iOS without breaking the affected layouts.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.