TransitionAnimatable.swift 733 B

123456789101112131415161718192021222324
  1. //
  2. // Created by Jake Lin on 2/24/16.
  3. // Copyright © 2016 IBAnimatable. All rights reserved.
  4. //
  5. import UIKit
  6. /// Protocol for transition animations
  7. public protocol TransitionAnimatable: class {
  8. /**
  9. Transition animation type: used to specify the transition animation
  10. */
  11. var transitionAnimationType: TransitionAnimationType { get set }
  12. /**
  13. Transition duration: default value should be `Double.nan`. Need to use `Double` instead of `TimeInterval` because IB doesn't support `TimeInterval`
  14. */
  15. var transitionDuration: Double { get set }
  16. /**
  17. Interactive gesture type: used to specify the gesture to dismiss or pop from current scence
  18. */
  19. var interactiveGestureType: InteractiveGestureType { get set }
  20. }