RoundedRectangle(cornerRadius: 20)
.fill(.regularMaterial)
.frame(height: 150)
.padding(EdgeInsets(top: 0, leading: 15, bottom: 0, trailing: 15))
This view shows a rectangle with the corners being rounded by the radius specified. You can also specify the fill color (not to be confused with the background one).