title: how to override touch functions properly in iOS 9, swift 2
body: <p>Well, I says on the lines <code>changeColorTo(touch: touches.anyObject() as? UITouch)
  </code>
  this error "value of type "Set" has no member "anyObject"</p>
  
  <p>How can I fix the problem?</p>
  
  <pre><code>override func touchesBegan(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
      changeColorTo(touch: touches.anyObject() as? UITouch)
  }
  
  override func touchesMoved(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
      changeColorTo(touch: touches.anyObject() as? UITouch)
  }
  
  override func touchesEnded(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
      changeColorTo(touch: touches.anyObject() as? UITouch)
  }
  
  func changeColorTo(touch  touch: UITouch? ) {
      if let contact = touch {
          changeColorTo(point: contact.locationInView(self))
      }
  }
  
  func changeColorTo(point  point: CGPoint ) {
      // Change the color model to the color displayed at the given view coordinate
      if let color = colorModel {
          let bounds = self.bounds
          if bounds.contains(point) {
              color.hue = Float((point.x-bounds.minX)/bounds.width*360)
              color.saturation = Float((point.y-bounds.minY)/bounds.height*100)
          }
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>