Fix ImageCarousel corner radius and context menu

This commit is contained in:
OlegAba
2023-02-21 22:00:31 -05:00
committed by William Casarin
parent a2749eaaaa
commit 75fb0d19e2

View File

@@ -205,6 +205,7 @@ struct ImageCarousel: View {
view.framePreloadCount = 3 view.framePreloadCount = 3
} }
.aspectRatio(contentMode: .fit) .aspectRatio(contentMode: .fit)
.cornerRadius(10)
.tabItem { .tabItem {
Text(url.absoluteString) Text(url.absoluteString)
} }
@@ -217,11 +218,11 @@ struct ImageCarousel: View {
} }
} }
} }
.cornerRadius(10)
.fullScreenCover(isPresented: $open_sheet) { .fullScreenCover(isPresented: $open_sheet) {
ImageView(urls: urls) ImageView(urls: urls)
} }
.frame(height: 200) .frame(height: 200)
.clipped()
.onTapGesture { .onTapGesture {
open_sheet = true open_sheet = true
} }