Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Allow third party libs to display animated images correctly in view recycling scenarios #6153

Merged
merged 5 commits into from May 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion Xamarin.Forms.Platform.iOS/Renderers/ImageElementManager.cs
Expand Up @@ -105,7 +105,11 @@ public static async Task SetImage(IImageVisualElementRenderer renderer, IImageEl

var source = imageElement.Source;

if (oldElement != null)
if (Control.Image?.Images != null && Control.Image.Images.Length > 1)
{
renderer.SetImage(null);
}
else if (oldElement != null)
{
var oldSource = oldElement.Source;
if (Equals(oldSource, source))
Expand Down