Skip to content

Seyfo #7

Open
Open

Description

@seyfullaalizada

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions