I have a series of custom defined Shape and a ZStack that has a set frame, is there a way to increase the size of each custom Shape that can be of various sizes to fit the Zstack frame?
Code that will draw various Shape given points.
struct DrawShape: Shape {
var points: [CGPoint]
func path(in rect: CGRect) -> Path {
var path: Path = Path()
guard let startingPoint = points.first else {
return path
}
path.move(to: startingPoint)
for pointLocation in points {
path.addLine(to: pointLocation)
}
return path
}
}


