My code is this:
let myPath = UIBezierPath()
myPath.lineJoinStyle = .round
let rect = bounds
myPath.move(to: CGPoint(x: rect.maxX * 0.05, y: rect.midY))
myPath.addCurve(to: CGPoint(x: rect.maxX / 3, y: rect.maxY / 10),
controlPoint1: CGPoint(x: rect.midX/5, y: rect.midY/2),
controlPoint2: CGPoint(x: rect.midX/3, y: rect.midY/3))
myPath.addQuadCurve(to: CGPoint(x: rect.maxX * 2/3, y: rect.maxY / 5),
controlPoint: CGPoint(x: rect.maxX * 0.6, y: rect.maxY / 4))
But still first and second curves joint point is not round. What should I do to make it round and smooth?
Here is result image:

