SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Background Color

Open zwirne opened this issue 4 years ago • 0 comments

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"))

        // 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)

`

IMG_FE09EB80D5C0-1

zwirne avatar Oct 05 '21 08:10 zwirne