From 3353deb11b762db7bbdabed8cb926331c3d98646 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Thu, 30 Jan 2020 11:55:47 +0800 Subject: [PATCH] Fix the issue when Indicator is hidden, which still preserve the layout on watchOS (have no issues on iOS/tvOS/macOS) --- SDWebImageSwiftUI/Classes/Indicator/Indicator.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift b/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift index 35a1b36e..2316f5d2 100644 --- a/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift +++ b/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift @@ -38,8 +38,6 @@ struct IndicatorViewModifier : ViewModifier where T : View { content if imageManager.isLoading { indicator.content($imageManager.isLoading, $imageManager.progress) - } else { - indicator.content($imageManager.isLoading, $imageManager.progress).hidden() } } }