Skip to content

CollectionView Header is not visible when ItemsSource is not set and EmptyView is set in iOS, Mac platform #34897

Description

@KarthikRajaKalaimani

Description

CollectionView header is not visible when ItemsSource is not set and EmptyView is loaded in collectionview on iOS and Mac platform. This issue not occurring in android platform.

Steps to Reproduce

 <CollectionView>
        <CollectionView.ItemsLayout>
            <GridItemsLayout Orientation="Vertical"
                             Span="2"/>
        </CollectionView.ItemsLayout>
        <CollectionView.Header>
            <Label Text="Header"
                   FontSize="20"
                   FontAttributes="Bold"
                   Padding="20"/>
        </CollectionView.Header>
        <CollectionView.EmptyView>
            <Label Text="No items yet"
                   FontSize="18"
                   Padding="20"/>
        </CollectionView.EmptyView>
    </CollectionView>

MauiApp1 2.zip

Link to public reproduction project repository

No response

Version with bug

10.0.50

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

no

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions