Swiftpack.co - Package - mgor3k/easy-transitions

EasyTransitions

EasyTransitions is a small SPM package with simple presentation transitions.

Documentation coming soon.

This library contains subclasses of UIViewControllerAnimatedTransitioning

  • OverlayTransition(duration:, startingPoint:, backgroundColor:)
  • BottomToTopTransition(duration:)
  • LeftToRightTransition(duration:)
  • RightToLeftTransition(duration:)
  • TopToBottomTransition(duration:)
  • more coming soon

For example usage check sample controllers PushTransitionNavigationController or OverlayTransitionNavigationController

let someVC = SomeViewController()

let navVC = PushTransitionNavigationController(
    transitionDuration: 1,
    transitionType: .rightToLeft
)

navVC.viewControllers = [someVC]
present(navVC, animated: true)
let someVC = SomeViewController()

let navVC = OverlayTransitionNavigationController(
    startingPoint: button.center,
    backgroundColor: button.backgroundColor
)

navVC.viewControllers = [someVC]
present(navVC, animated: true)

Github

link
Stars: 0

Dependencies

Used By

Total: 0