let path = UIBezierPath(roundedRect: CGRect(x: 10, y: item.20, width: item.355, height: 94), cornerRadius: 31).cgPath
ctx.addPath(path)
ctx.setStrokeColor(UIColor(.red).cgColor)
ctx.setLineWidth(1)
ctx.drawPath(using: .stroke)
代码中的 cornerRadius 31 是极限,再大的话圆角也不会变。如果是正方形圆角值可以跟边长一致,这种长方形的最大圆角值是怎么算出来的?