title: No '+" candidates produce the expected contextual result type 'AnyObject' Error in Swift 3
body: <p>I have this function that animates a UIImageView:</p>
  
  <pre><code>override func deselectAnimation(_ icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor) {
      playMoveIconAnimation(icon, values:[icon.center.y + 4.0, icon.center.y])
      playDeselectLabelAnimation(textLabel)
      textLabel.textColor = defaultTextColor
  
      if let iconImage = icon.image {
          let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
          icon.image = renderImage
          icon.tintColor = defaultTextColor
      }
  }
  
  func playMoveIconAnimation(_ icon : UIImageView, values: [AnyObject]) {
  
      let yPositionAnimation = createAnimation("position.y", values:values, duration:duration / 2)
  
      icon.layer.add(yPositionAnimation, forKey: "yPositionAnimation")
  }
  </code></pre>
  
  <p>After I upgraded to Swift 3 I started receiving the following error:</p>
  
  <pre><code>No '+" candidates produce the expected contextual result type 'AnyObject'
  </code></pre>
  
  <p>I read in a similar <a href="https://stackoverflow.com/questions/36696321/no-candidates-produce-the-expected-result">question</a> that the function should have return values but I don't know how to implement this. I would appreciate your help resolving this error</p>