From 0970c364b63932500c6d132d32ce153a888baeaf Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 26 Apr 2023 15:41:13 -0700 Subject: [PATCH] Tweak fade speed and opacity on blurhash placeholders --- damus/Components/ImageCarousel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/damus/Components/ImageCarousel.swift b/damus/Components/ImageCarousel.swift index d363afdb..76adb6c5 100644 --- a/damus/Components/ImageCarousel.swift +++ b/damus/Components/ImageCarousel.swift @@ -100,6 +100,7 @@ struct ImageCarousel: View { case .processed(let blurhash) = meta.state { Image(uiImage: blurhash) .resizable() + .opacity(0.8) .frame(width: geo_size.width * UIScreen.main.scale, height: self.height * UIScreen.main.scale) } else { EmptyView() @@ -127,7 +128,7 @@ struct ImageCarousel: View { .callbackQueue(.dispatch(.global(qos:.background))) .backgroundDecode(true) .imageContext(.note, disable_animation: state.settings.disable_animation) - .image_fade(duration: 1.0) + .image_fade(duration: 0.25) .cancelOnDisappear(true) .configure { view in view.framePreloadCount = 3