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
22.21k stars 1.75k forks source link

SwipeView does not work correctly on iOS when opened programmatically #17204

Open Heinz12 opened 1 year ago

Heinz12 commented 1 year ago

Description

MauiSwipeViewIssue

Steps to Reproduce

  1. Create new .NET Maui App
  2. Add a SwipeView with some content
  3. Add code to programmatically open the SwipeView
  4. Open the SwipeView with swipe gesture => SwipeView is displayed correctly
  5. Open the SwipeView programmatically with SwipeView.Open(...) => Problem occurs (only on iOS)

See picture in the description to see the problem

Link to public reproduction project repository

https://github.com/Heinz12/MauiIssueSwipeView

Version with bug

7.0.92

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

ghost commented 1 year ago

Hi @Heinz12. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Heinz12 commented 1 year ago

I tried with Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.8.0 Preview 1.0. => still does not work I also updated the TargetFramework to net80 => problem still exists

I updated my reproduction project (see https://github.com/Heinz12/MauiIssueSwipeView)

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0 using below Project(.NET 8), this issue repro on iOS 16.4, not repro on Android 13.0-API33. Repro project: recipeSearch.zip

iOS 16.4: image Android: image

Carlosperez1001 commented 4 months ago

Any updates on this issue?

reid-kirkpatrick commented 2 months ago

@jsuarezruiz is there any intention to look into this?