commit 14802e334d6e66442a2be48056d44879992d1b0b
parent 98d11fb71e6e3bff64cfaa347bf885ea46cfe733
Author: William Casarin <jb55@jb55.com>
Date: Tue, 4 Apr 2023 12:03:45 -0700
Fix crash in image carousel
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Components/ImageCarousel.swift b/damus/Components/ImageCarousel.swift
@@ -81,9 +81,9 @@ struct ImageCarousel: View {
.imageModifier({ img in
let img_size = img.size
let is_animated = img.kf.imageFrameCount != nil
- let geo_size = geo.size
DispatchQueue.main.async {
+ let geo_size = geo.size
let fill = calculate_image_fill(geo_size: geo_size, img_size: img_size, is_animated: is_animated, maxHeight: maxHeight, minHeight: minHeight)
self.previews.cache_image_meta(evid: evid, image_fill: fill)