mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
carousel: fix image positioning
This commit is contained in:
parent
bb091d072f
commit
9e359650bf
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user