I’ve been utilizing an Picture
view in SwiftUI to render an SVG that I’ve added to my property folder
These are the picture’s properties
On the internet or in preview on my mac, it appears to be like as follows:
Nevertheless, when the identical SVG picture renders on my gadget or simulator as follows:
For some cause it will get warped, tiled or distorted – no matter the precise phrase is for this.
I’ve used SVGs prior to now however it all the time rendered usually.
The SVG is sort of massive – about 7MB.
And that is my code:
Picture("imageName")
.resizable()
.aspectRatio(contentMode: .match)
.body(maxWidth: .infinity)
.body(peak: 294)
Any thought what could possibly be going unsuitable