From 84919ae18e360d87e8945f080c2bfe38440d9803 Mon Sep 17 00:00:00 2001 From: Eric Andrews Date: Sat, 30 Sep 2023 21:16:20 -0400 Subject: [PATCH] rebased --- Mlem/Views/Shared/Cached Image.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mlem/Views/Shared/Cached Image.swift b/Mlem/Views/Shared/Cached Image.swift index 6be397ec5..e72f2d1f6 100644 --- a/Mlem/Views/Shared/Cached Image.swift +++ b/Mlem/Views/Shared/Cached Image.swift @@ -160,7 +160,7 @@ struct CachedImage: View { .frame(idealWidth: size.width) .frame(height: size.height) .onDisappear { - // if the post disappears and the size still isn't computed, just cache it as-is + // if the post disappears and the size still isn't computed, cache the fallback size. This ensures that the view doesn't resize while scrolling back up. if shouldRecomputeSize { cacheImageSize() shouldRecomputeSize = false