var circles = [UITouch: CircleWithLabel]() override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { label.hidden = true for touch in touches { let circle = CircleWithLabel() circle.drawAtPoint(touch.locationInView(view), force: touch.force / touch.maximumPossibleForce) circles[touch] = circle view.layer.addSublayer(circle) } highlightHeaviest() }
Activity