I want to resize a system image but still maintain the Image type
Currently, every method I've tried returns some View, which I can't then use for the rest of my code which requires an Image type
Canvas {context, size in
let img = Image(systemName: "circle.fill").frame(width: 3, height: 3)
let p = getPoint(radius: ring.radius * factor, center: CGPoint(x: size.width/2, y: size.height/2), angle: Double(ang))
points[p] = img -->store image in a hash map
context.draw(img, at: CGPoint(x: p.x, y: p.y))
}
I've trying to figure this out for hours but not luck! Would appreciate any help