dotnet / dotnet/maui

CollectionView Does Not Scroll When EmptyView Exceeds Screen Size

Open
#28,080 9 comments 1 reaction 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 10h
Merged PRs (30d)
297

Description

### Description

On iOS, when a CollectionView has an EmptyView that exceed the screen height, the CollectionView does not become scrollable. However, the header seems to be scrollable when the list is empty.

### Steps to Reproduce

1. Create a new .NET MAUI app
2. Add a CollectionView with an EmptyView
3. Ensure the EmptyView is large enough (e.g., multiple labels or a large height request)
4. Run the app on iOS or Android
5. Try to scroll when no items are in the CollectionView.

### Link to public reproduction project repository

_No response_

### Version with bug

9.0.40 SR4

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

iOS

### Affected platform versions

iOS

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.