maui
maui copied to clipboard
SwipeItem inside custom Flyout does not fire command on iOS
Description
I believe this is likely related to #18809
My app uses customization for the flyout to display collections of items in various categories. I'm attempting to use a SwipeView to add the ability to remove items from these collections.
On Android, this works as I expected. Swiping reveals the underlying button and touching it fires the command.
On iOS, swiping will reveal the button, but touching it closes the flyout without firing the command.
If the FlyoutBehavior is set to locked, the command works on iOS.
(I haven't tested this on Windows, but I'm not using SwipeViews there)
Steps to Reproduce
- Run sample App on Android / iOS.
- Click the menu icon (this is white or transparent in the demo app for some reason).
- Swipe the label to reveal the SwipeItem
- Notice that the command works on Android and the flyout remains opens, but does not work on iOS and the flyout closes.
Link to public reproduction project repository
https://github.com/UnusualJustin/SwipeItemInFlyout
Version with bug
8.0.7 SR2
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
No response
Did you find any workaround?
I have not found a workaround for this particular issue. I did find that putting items in a CollectionView prevented the Flyout from automatically closing on iOS, but that's not an option for the SwipeView.
Relevant log output
No response
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on VS 17.10.0 Preview 2.0(8.0.14). Repro on iOS 17.2 and MacCatalyst, not repro on Android 14.0-API34. SwipeItemInFlyout.zip
https://github.com/dotnet/maui/assets/97647558/5278b766-a302-4c12-ae27-91243f85818a