dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

CarouselView - iOS - Changing Position no longer works after navigation away then coming back #23291

Open ryanalford-suzy opened 1 week ago

ryanalford-suzy commented 1 week ago

Description

On iOS, programmatically changing the Position of the CarouselView no longer works if you navigate away and come back when using Shell navigation.

Android works fine.

EDITED: Tested using NavigationPage instead of Shell navigation, and the issue still exists.

Steps to Reproduce

  1. Run the project
  2. Tap the bottom buttons to see the CarouselView switch between fragments.
  3. Tap the Open Second Page button
  4. Tap the Back button at the top left.
  5. Tap the bottom buttons again.

Link to public reproduction project repository

https://github.com/ryanalford-suzy/CarouselViewTest

Version with bug

8.0.60 SR6

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.40 SR5

Affected platforms

iOS

Affected platform versions

iPhone - iOS 16.7.7, iOS Simulator 17.4

Did you find any workaround?

No workaround

Relevant log output

No response

github-actions[bot] commented 1 week ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

RoiChen001 commented 1 week ago

I can repro this issue at iOS platform on the latest 17.11.0 Preview 2.1(8.0.60).

watfordsuzy commented 1 week ago

Proximate cause? https://github.com/dotnet/maui/pull/22861

PureWeen commented 1 week ago

@RoiChen001 were you able to confirm if this works on 8.0.40 and regressed in later versions?

ryanalford-suzy commented 1 week ago

I've added a second branch in the sample repo that targets 8.0.40.

Make sure to delete bin/obj folders when switching maui versions.

RoiChen001 commented 3 days ago

@PureWeen Yes, it works fine at iOS platform on 17.11.0 Preview 2.1(8.0.40).