I have 4 circles created on the same way:
var circleText1 = UIBezierPath(arcCenter: CGPoint(x: labelOrigin.frame.origin.x - 10,y: labelOrigin.frame.origin.y + labelOrigin.frame.height/2), radius: 5, startAngle: CGFloat(0), endAngle:CGFloat(M_PI * 2), clockwise: true)
let shapeLayerCircle1 = CAShapeLayer()
shapeLayerCircle1.path = circleText1.CGPath
shapeLayerCircle1.fillColor = colorArrow.CGColor
self.container.layer.addSublayer(shapeLayerCircle1)
With its respective frames, and I'd like to make the user able to join the buttons to make a word, letter W. More or less like that game we have all played
How can I draw the line between the points? I have thought of making it with UIPanGestureRecognizer but don't know who will I draw the line between these 2, and then start the new line with the next point.