material-motion / material-motion-swift

A toolkit for building responsive motion using Core Animation.
Apache License 2.0
1.42k stars 79 forks source link

Fix this build failure #34

Closed jverkoey closed 7 years ago

jverkoey commented 7 years ago
let spring = Spring(to: 1, threshold: 0.1, system: coreAnimation)

Ambiguous reference to member 'coreAnimation(_:initialValue:)'

Solution is to cast:

let spring = Spring(to: CGFloat(1), threshold: 0.1, system: coreAnimation)

But we should support using literal numbers as well.

jverkoey commented 7 years ago

Obsolete.