From be65ea3cd6d59211f803aede50f7cb9e70b1751d Mon Sep 17 00:00:00 2001 From: Victor Rabelo Date: Tue, 29 Sep 2020 13:39:42 -0300 Subject: [PATCH] removed DispatchQueue from image render Signed-off-by: Victor Rabelo --- .../Components/Image+Renderable/Image+Renderable.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/iOS/Sources/Beagle/Sources/Components/Image+Renderable/Image+Renderable.swift b/iOS/Sources/Beagle/Sources/Components/Image+Renderable/Image+Renderable.swift index 17b4d436c8..e483c50af5 100644 --- a/iOS/Sources/Beagle/Sources/Components/Image+Renderable/Image+Renderable.swift +++ b/iOS/Sources/Beagle/Sources/Components/Image+Renderable/Image+Renderable.swift @@ -59,10 +59,8 @@ extension Image: Widget { switch result { case .success(let data): let image = UIImage(data: data) - DispatchQueue.main.async { - imageView.image = image - controller?.setNeedsLayout(component: imageView) - } + imageView.image = image + controller?.setNeedsLayout(component: imageView) case .failure: imageView.image = placeholderImage controller?.setNeedsLayout(component: imageView)