ObjectAnimator is an experimental library written in Swift. The library starts as a direct port of Android's anmations.ObjectAnimator. Along with the development, generics are introduced to avoid duplicate logic as in Android's ObjectAnimator. It can be used as a start point to develop full-blown ObjectAnimator to coordinate animation on custom object. Contributions are highly welcome.
Long press on the map to set start point and end point. Route will be drawn with animations.
Resume/PauseRepeat- Reverse
- Start delay
- Jank before first frame?
- Interpolator
- AnimatorSet
- Input verification e.g. duration >= 0
import ObjectAnimator
let animator = ObjectAnimator(values: coordinates, evaluator: LatLngEvaluator())
animator.duration = 3
animator.start
Checkout MapRouteViewController for more detailed usages.
ObjectAnimator is available under the MIT license. See the LICENSE file for more info.