iOS Bezier 곡선 그리기


var path = UIBezierPath()
path.addArc(withCenter: centerPoint, radius: outerTrackRadius, startAngle: startAngle, endAngle: outerRingEndAngle, clockwise: true)
outerRingColor.setStroke()
path.lineWidth = outerRingThickness * radius
path.lineCapStyle = .round
path.stroke()
        
path.removeAllPoints()
path.addArc(withCenter: centerPoint, radius: innerTrackRadius, startAngle: startAngle, endAngle: innerRingEndAngle, clockwise: true)
innerRingColor.setStroke()
path.lineWidth = innerRingThickness * radius
path.lineCapStyle = .round
path.stroke()

,

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다