// // MWMSpringAnimation.h // Maps // // Created by v.mikhaylenko on 21.04.15. // Copyright (c) 2015 MapsWithMe. All rights reserved. // #import #import "MWMAnimator.h" typedef void (^MWMSpringAnimationCompletionBlock) (void); @interface MWMSpringAnimation : NSObject @property (nonatomic, readonly) CGPoint velocity; + (instancetype)animationWithView:(UIView *)view target:(CGPoint)target velocity:(CGPoint)velocity completion:(MWMSpringAnimationCompletionBlock)completion; + (CGFloat)approxTargetFor:(CGFloat)startValue velocity:(CGFloat)velocity; @end