How to draw rounded rect that wraps around circular button?
问题 I want to design the highlighted portion of curve of the below screen snapshot using bezier path in swift. 回答1: It’s just a little trigonometry to figure out the arcs around that button in the bottom right hand corner, e.g. func updatePath() { let buttonCenter = CGPoint(x: bounds.maxX - circleRadius, y: bounds.maxY - circleRadius) circleShapeLayer.path = UIBezierPath(arcCenter: buttonCenter, radius: circleRadius, startAngle: 0, endAngle: .pi * 2, clockwise: true).cgPath // red let angle1 =