我这里有这条路径:
var pathWidth = 758 + 120
Path { path in
path.move(to: CGPoint(x: 0, y: 0))
path.addLine(to: CGPoint(x: 0, y: 400))
path.addLine(to: CGPoint(x: 58 + pathWidth, y: 400))
path.addLine(to: CGPoint(x: 58 + pathWidth, y: 0))
}
当我调整窗口大小时,路径保持相同的大小。窗口变大时如何增大路径大小?