Skip to content

danielVebman/BDTransition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

BDTransition

A resizing bottom drawer transition heavily inspired by SPLarkController.

The transition is very easy to implement:

let controller = UIViewController()
let transitionDelegate = BDTransitioningDelegate(height: 300)
controller.transitioningDelegate = transitionDelegate
controller.modalPresentationStyle = .custom
controller.modalPresentationCapturesStatusBarAppearance = true
present(controller, animated: true, completion: nil)

To update the height of the presented controller, write in the presented controller:

if let presentationController = presentationController as? BDPresentationController {
    presentationController.updateHeight(600)
}

And that's it!

About

A resizing bottom drawer transition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages