Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Fix for CarouselView ItemSpacing property in ItemsLayout not working with CV2 #27056

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ahamed-Ali
Copy link
Contributor

@Ahamed-Ali Ahamed-Ali commented Jan 10, 2025

Root Cause of the issue

The itemSpacing variable is initialized to 0. As a result, itemSpacing remains 0, and no spacing is applied between the items.

Description of Change

To resolve this, apply the correct item spacing from the LinearItemsLayout.

Issues Fixed

Fixes #27025

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Screenshot

Before Issue Fix After Issue Fix

Copy link
Contributor

Hey there @Ahamed-Ali! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 10, 2025
@Ahamed-Ali
Copy link
Contributor Author

@dotnet-policy-service agree company="Syncfusion, Inc."

@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 10, 2025
@Ahamed-Ali
Copy link
Contributor Author

Hi @mattleibow,

I have fixed the ItemSpacing issue in CarouselViewHandler2.iOS, which resolves the issues on both iOS and macOS.

While testing to enable the test case in MacCatalyst, maximizing the window resulted in different behaviors in CV1 and CV2. As a result, I have not enabled the MacCatalyst condition yet. Could you please confirm the correct behavior on macOS—CV1 or CV2?

Issue link : #26969

@rmarinho
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Ahamed-Ali Ahamed-Ali marked this pull request as ready for review January 10, 2025 17:09
@Ahamed-Ali Ahamed-Ali requested a review from a team as a code owner January 10, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] CarouselView ItemSpacing property in ItemsLayout not working with CV2
3 participants