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

Maui - SwipeView not working with Editor control in iOS #15975

Closed
RawoofSharief opened this issue Jul 3, 2023 · 6 comments
Closed

Maui - SwipeView not working with Editor control in iOS #15975

RawoofSharief opened this issue Jul 3, 2023 · 6 comments
Labels
area-controls-editor Editor area-controls-swipeview SwipeView platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Milestone

Comments

@RawoofSharief
Copy link

RawoofSharief commented Jul 3, 2023

Description

SwipeView item not swiping when the item has editor control inside the template. Please refer the below screenshot.

Simulator Screen Shot - iPhone 14 - 2023-07-03 at 18 26 21

If I use label or entry controls, Swiping is working properly. Please refer the below screenshot.

Simulator Screen Shot - iPhone 14 - 2023-07-03 at 18 29 26

Steps to Reproduce

<Grid x:Name="SwipeViewGrid" 
          RowDefinitions="*">
    <CollectionView x:Name="collectionView"
        HorizontalOptions="FillAndExpand"
        SelectionMode="None"
        ItemSizingStrategy="MeasureAllItems"
        VerticalScrollBarVisibility="Never">
        <CollectionView.ItemTemplate>
            <DataTemplate>
                    <SwipeView Threshold="0" IsClippedToBounds="True">
                    <SwipeView.RightItems>
                        <SwipeItems SwipeBehaviorOnInvoked="Close" >
                            <SwipeItemView >
                                <Frame Margin="10,20,25,20" WidthRequest="80"
                                        Padding="8"
                                        HasShadow="False"
                                        BackgroundColor="Red"
                                        CornerRadius="7"
                                        IsClippedToBounds="True">
                                    <Label Text="Delete" Margin="0" Padding="0"
                                            TextColor="Black"
                                            TextTransform="Uppercase"
                                            VerticalOptions="Center"
                                            HorizontalOptions="Center" HorizontalTextAlignment="Center"
                                            LineBreakMode="WordWrap"
                                            FontSize="12"/>
                                </Frame>
                            </SwipeItemView>
                        </SwipeItems>
                    </SwipeView.RightItems>
                    <Grid Padding="10">
                        <Frame BackgroundColor="Transparent" Margin="10"
                            HasShadow="False"
                            Padding="10"
                            BorderColor="Grey"
                            CornerRadius="7"
                            IsClippedToBounds="True">
                            <Grid ColumnDefinitions="Auto,*"
                                ColumnSpacing="10">

                                <Frame Grid.Column="0"
                                    HasShadow="False"
                                    CornerRadius="5"
                                    IsClippedToBounds="True"
                                    Padding="0"
                                    Margin="0">
                                    <Image Source="dotnet_bot.png"
                                        HeightRequest="55" WidthRequest="54"
                                        Aspect="Fill"
                                        VerticalOptions="Center"
                                        BackgroundColor="Transparent">
                                    </Image>
                                </Frame>
                                <Grid Grid.Column="1">
                                    <Editor 
                                        BackgroundColor="Transparent"
                                        MinimumHeightRequest="50" MaximumHeightRequest="50"
                                        Placeholder="Enter Text Here"
                                        />
                                <!--<Label Text="test"/>-->
                                </Grid>
                            </Grid>
                        </Frame>
                    </Grid>
                </SwipeView>
            </DataTemplate>
        </CollectionView.ItemTemplate>
    </CollectionView>
</Grid>

Link to public reproduction project repository

https://github.com/RawoofSharief/SwipeIssue.git

Version with bug

7.0.59

Last version that worked well

6.0

Affected platforms

iOS

Affected platform versions

16.2

Did you find any workaround?

No response

Relevant log output

No response

@RawoofSharief RawoofSharief added the t/bug Something isn't working label Jul 3, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jul 3, 2023
@ghost
Copy link

ghost commented Jul 3, 2023

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.

@drasticactions drasticactions added the s/needs-repro Attach a solution or code which reproduces the issue label Jul 4, 2023
@ghost
Copy link

ghost commented Jul 4, 2023

Hi @RawoofSharief. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

@drasticactions
Copy link
Contributor

If you could create a reproduction project, rather than a XAML segment, that would make it easier to properly reproduce, debug, and verify the issue and make sure it's fixed.

@RawoofSharief
Copy link
Author

Please find the reproduction sample project in the below link. Also,I have added in the issue description.

Sample Link : https://github.com/RawoofSharief/SwipeIssue.git

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jul 4, 2023
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 6, 2023
@AnnYang01
Copy link

AnnYang01 commented Aug 2, 2023

Verified this on Visual Studio Enterprise 17.7.0 Preview 6.0 in iOS 16.4. This issue didn't repro on .NET 8.0 with below Project:
MauiApp4.zip
Screenshot in iSO16.4:
image

@AnnYang01 AnnYang01 added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Aug 2, 2023
@ghost
Copy link

ghost commented Aug 2, 2023

Hi @RawoofSharief. 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.

@ghost ghost closed this as completed Aug 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-editor Editor area-controls-swipeview SwipeView platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants