images: use clear background color instead of black/white
This commit is contained in:
@@ -115,8 +115,6 @@ struct ImageViewer: View {
|
|||||||
struct ImageCarousel: View {
|
struct ImageCarousel: View {
|
||||||
var urls: [URL]
|
var urls: [URL]
|
||||||
|
|
||||||
@Environment(\.colorScheme) var colorScheme
|
|
||||||
|
|
||||||
@State var open_sheet: Bool = false
|
@State var open_sheet: Bool = false
|
||||||
@State var current_url: URL? = nil
|
@State var current_url: URL? = nil
|
||||||
|
|
||||||
@@ -124,7 +122,7 @@ struct ImageCarousel: View {
|
|||||||
TabView {
|
TabView {
|
||||||
ForEach(urls, id: \.absoluteString) { url in
|
ForEach(urls, id: \.absoluteString) { url in
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.foregroundColor(colorScheme == .light ? Color.white : Color.black)
|
.foregroundColor(Color.clear)
|
||||||
.overlay {
|
.overlay {
|
||||||
KFAnimatedImage(url)
|
KFAnimatedImage(url)
|
||||||
.configure { view in
|
.configure { view in
|
||||||
|
|||||||
Reference in New Issue
Block a user