refactor: remove redundant rectangle in ImageCarousel

This commit is contained in:
William Casarin
2023-05-02 06:43:48 -07:00
parent 03931ef70e
commit a18ba86157

View File

@@ -119,9 +119,6 @@ struct ImageCarousel: View {
var body: some View { var body: some View {
TabView { TabView {
ForEach(urls, id: \.absoluteString) { url in ForEach(urls, id: \.absoluteString) { url in
Rectangle()
.foregroundColor(Color.clear)
.overlay {
GeometryReader { geo in GeometryReader { geo in
KFAnimatedImage(url) KFAnimatedImage(url)
.callbackQueue(.dispatch(.global(qos:.background))) .callbackQueue(.dispatch(.global(qos:.background)))
@@ -147,7 +144,6 @@ struct ImageCarousel: View {
} }
} }
} }
}
.fullScreenCover(isPresented: $open_sheet) { .fullScreenCover(isPresented: $open_sheet) {
ImageView(urls: urls, disable_animation: state.settings.disable_animation) ImageView(urls: urls, disable_animation: state.settings.disable_animation)
} }