the following code gives me an issue in Swift 3:
UIView.animateWithDuration(highlightTime,
delay: 0.0,
options: .CurveLinear & .AllowUserInteraction & .BeginFromCurrentState, // here Type of expression is ambigous without more context
animations: {
button.backgroundColor = highlightColor
}, completion: { finished in
button.backgroundColor = originalColor
var newIndex : Int = index + 1
self.playSequence(newIndex, highlightTime: highlightTime)
})
}
The code was copied frok an earlier Swift version