@@ -309,8 +309,6 @@ public struct AnimatedImage : PlatformViewRepresentable {
309
309
#endif
310
310
context. coordinator. imageLoading. imageName = name
311
311
view. wrapped. image = image
312
- // Finished loading, sync
313
- finishUpdateView ( view, context: context, image: image)
314
312
}
315
313
316
314
private func updateViewForData( _ data: Data ? , view: AnimatedImageViewWrapper , context: Context ) {
@@ -324,8 +322,6 @@ public struct AnimatedImage : PlatformViewRepresentable {
324
322
}
325
323
context. coordinator. imageLoading. imageData = data
326
324
view. wrapped. image = image
327
- // Finished loading, sync
328
- finishUpdateView ( view, context: context, image: image)
329
325
}
330
326
331
327
private func updateViewForURL( _ url: URL ? , view: AnimatedImageViewWrapper , context: Context ) {
@@ -350,8 +346,6 @@ public struct AnimatedImage : PlatformViewRepresentable {
350
346
setupIndicator ( view, context: context)
351
347
loadImage ( view, context: context)
352
348
}
353
- // Finished loading, sync
354
- finishUpdateView ( view, context: context, image: view. wrapped. image)
355
349
}
356
350
357
351
func updateView( _ view: AnimatedImageViewWrapper , context: Context ) {
@@ -369,6 +363,9 @@ public struct AnimatedImage : PlatformViewRepresentable {
369
363
break // impossible
370
364
}
371
365
366
+ // Finished loading, sync
367
+ finishUpdateView ( view, context: context, image: view. wrapped. image)
368
+
372
369
if let viewUpdateBlock = imageHandler. viewUpdateBlock {
373
370
viewUpdateBlock ( view. wrapped, context)
374
371
}
0 commit comments