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

Spring/Tween instances shouldn't be referenced directly in connection implementation #28

Closed jverkoey closed 7 years ago

jverkoey commented 7 years ago

Doing so allows the instance to change after the stream has been subscribed, leading to potentially unexpected behavior. We want to provide a guarantee that once a spring/tween has been subscribed to, subsequent changes to the spring/tween won't affect that stream.