I am trying to create a border around a RoundedRectangle where the border has a cornerRadius of 25. Here is the code I have.
RoundedRectangle(cornerRadius: 25)
.fill(Color.white)
.frame(width: 290, height: 315)
.border(Color("Dark Text"), width: 3)
.cornerRadius(25)
From this code the the rectangle has a cornerRadius of 25 but the border matches the frame. How would I get the border to have a cornerRadius of 25?