[FIXED] Corners are still visible in SwipeView on iOS, Xamarin Forms

Issue

I still have the corners displayed when I’m using a SwipeView. It doesn’t do this under Xamarin.Android, just only in Xamarin.iOs

enter image description here

There is the code:

<SwipeView BackgroundColor="Transparent">
    <SwipeView.RightItems>
        <SwipeItems Mode="Reveal">

                    ***** Some code for the SwipeItems ****

        </SwipeItems>
    </SwipeView.RightItems>

    <Frame Margin="20" HeightRequest="65" BorderColor="CornflowerBlue"
           BackgroundColor="CadetBlue" CornerRadius="20">

                    ***** Some code *****
    </Frame>
</SwipeView>

Does someone know why?
Thank you

Solution

The reason why this is happening is that you have specified a background color to your SwipeView and BackgroundColor is at times treated differently on different platforms

All you need to do is instead of setting it transparent set it to what your background color should be.

<SwipeView BackgroundColor="CadetBlue">

Hope this helps

Answered By – FreakyAli

Answer Checked By – Marilyn (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published