1234567891011121314151617181920212223 |
- //
- // Created by Jake Lin on 4/6/16.
- // Copyright © 2016 IBAnimatable. All rights reserved.
- //
- import UIKit
- /**
- Interactive Animator Factory
- */
- struct InteractiveAnimatorFactory {
- static func makeInteractiveAnimator(interactiveGestureType: InteractiveGestureType, transitionType: TransitionType) -> InteractiveAnimator? {
- switch interactiveGestureType {
- case .pan:
- return PanInteractiveAnimator(interactiveGestureType: interactiveGestureType, transitionType: transitionType)
- case .screenEdgePan:
- return ScreenEdgePanInteractiveAnimator(interactiveGestureType: interactiveGestureType, transitionType: transitionType)
- case .pinch:
- return PinchInteractiveAnimator(interactiveGestureType: interactiveGestureType, transitionType: transitionType)
- default:
- return nil
- }
- }
- }
|