Skip to content

SwipeItemView won't render FontImageSource on first opening #18806

@dainius-r

Description

@dainius-r

Description

When creating SwipeView with custom SwipeItemView item(s) and adding Image with FontImageSource, font image won't render on first SwipeView interaction opening, when stopping interaction and opening again second time, font image becomes visible and stays visible always.

Tested on MAUI 7.0.96, same issue exists.

Code to reproduce the issue:

<SwipeView Threshold="120">
    <SwipeView.RightItems>
        <SwipeItems Mode="Execute">
            <SwipeItemView BackgroundColor="LightGray">
                <Image Margin="0,0,10,0" HorizontalOptions="End" VerticalOptions="Center">
                    <Image.Source>
                        <FontImageSource Color="Green" Glyph="A" />
                    </Image.Source>
                </Image>
            </SwipeItemView>
        </SwipeItems>
    </SwipeView.RightItems>

    <Grid BackgroundColor="AliceBlue">
        <Label Text="SwipeView Item" />
    </Grid>
</SwipeView>

Steps to Reproduce

  1. Create standard MAUI project
  2. Add to MainPage.xaml sample SwipeView code from description
  3. Run project on Android

Expected outcome: font image is always visible
Actual outcome: font image not visible in first opening

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13 - API 33

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions