swift – The way to repair jagged SVG xcassets picture in SwiftUI iOS?

 

I am making an attempt so as to add an SVG picture to my SwiftUI utility and the sides across the picture are jagged. How can I repair this?

I’ve verified that the precise SVG picture will not be jagged. I additionally tried including .interpolation(.none) with no success. In addition to enabling Protect Vector Knowledge, which did not work both.

It nearly appears to be like prefer it’s not treating the picture as an SVG, as a result of altering the foreground shade property would not have any influence.

HStack {
    if let satelliteImage = UIImage(named: "satellite-dish-solid") {
        Picture(uiImage: satelliteImage)
            .resizable()
            .body(width: 45, top: 45)
            .foregroundColor(.major)
    }
    Textual content("Satellite tv for pc")
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *