Hello,
I watched the video, the animation is on the delete icon and it shakes when drag/swipe the item. Please add the animation on the SwipeItem
instead of the Border
.
For example: Custom SwipeView
<SwipeView >
<SwipeView.RightItems SwipeChanging="SwipeView_SwipeChanging">
<SwipeItemView>
<StackLayout Margin="10"
WidthRequest="300" Background="AliceBlue">
<Image
WidthRequest="30"
HeightRequest="30"
x:Name="myImage"
Source="favorite.png"
HorizontalOptions="Center" />
</StackLayout>
</SwipeItemView>
</SwipeView.RightItems>
SwipeChanging method //You could set in your ViewModel and Command
private async void SwipeView_SwipeChanging(object sender, SwipeChangingEventArgs e)
{
await myImage.RotateTo(30, 500);
myImage.Rotation = 0;
}
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.