images: use clear background color instead of black/white

This commit is contained in:
William Casarin
2022-12-28 12:34:22 -08:00
parent e6ab1d16d5
commit 7c132675ac

View File

@@ -115,8 +115,6 @@ struct ImageViewer: View {
struct ImageCarousel: View {
var urls: [URL]
@Environment(\.colorScheme) var colorScheme
@State var open_sheet: Bool = false
@State var current_url: URL? = nil
@@ -124,7 +122,7 @@ struct ImageCarousel: View {
TabView {
ForEach(urls, id: \.absoluteString) { url in
Rectangle()
.foregroundColor(colorScheme == .light ? Color.white : Color.black)
.foregroundColor(Color.clear)
.overlay {
KFAnimatedImage(url)
.configure { view in