I'm using the following code to display an .png-file but am not able to remove the yellow background and the warning sign. Could you please help me with that issue?
// Supports options and context, like `.delayPlaceholder` to show placeholder only when error
.onSuccess { image, data, cacheType in
// Success
// Note: Data exist only when queried from disk cache or network. Use `.queryMemoryData` if you really need data
}
.resizable() // Resizable like SwiftUI.Image, you must use this modifier or the view will use the image bitmap size
.placeholder(Image("placeholder")) // Placeholder Image
// Supports ViewBuilder as well
.placeholder {
Rectangle().foregroundColor(.gray)
}
.indicator(.activity) // Activity Indicator
.transition(.fade(duration: 0.5)) // Fade Transition with duration
.aspectRatio(1, contentMode: .fit)
.background(Color.black)
.foregroundColor(Color.black)
Hello,
I'm using the following code to display an .png-file but am not able to remove the yellow background and the warning sign. Could you please help me with that issue?
` WebImage(url: URL(string: "https://www.pngall.com/wp-content/uploads/2/Exam-PNG-Pic.png"))
`