From 9e359650bfd98f61c21f252933bab36fe76c103d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 30 May 2023 17:57:32 -0700 Subject: [PATCH] carousel: fix image positioning --- damus/Components/ImageCarousel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/damus/Components/ImageCarousel.swift b/damus/Components/ImageCarousel.swift index 446159c8..4c411bb1 100644 --- a/damus/Components/ImageCarousel.swift +++ b/damus/Components/ImageCarousel.swift @@ -174,6 +174,7 @@ struct ImageCarousel: View { Placeholder(url: url, geo_size: geo.size, num_urls: urls.count) } .aspectRatio(contentMode: filling ? .fill : .fit) + .position(x: geo.size.width / 2, y: geo.size.height / 2) .tabItem { Text(url.absoluteString) }