damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0970c364b63932500c6d132d32ce153a888baeaf
parent d16192e845264ae6a6959c409e3df5c2342ab45d
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 26 Apr 2023 15:41:13 -0700

Tweak fade speed and opacity on blurhash placeholders

Diffstat:
Mdamus/Components/ImageCarousel.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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