how can I add a border with a cornerRadius to an Image. I get a deprecation warning saying that i should use a RoundedRectange Shape, but i don\'t know how to use t
cornerRadius
I really liked kontiki's answer but not the length so I wrote:
import SwiftUI func strokedRoundedRectangle( cornerRadius r: CGFloat, lineWidth w: CGFloat = 1, color c: Color = .primary ) -> some View { return RoundedRectangle(cornerRadius: r).stroke(lineWidth: w).foregroundColor(c) }