52inc / Pulley

A library to imitate the iOS 10 Maps UI.
https://cocoapods.org/pods/Pulley
MIT License
2.02k stars 265 forks source link

Top spacing issue #386

Closed AshutosQuickride closed 3 years ago

AshutosQuickride commented 4 years ago

Hi there i am using this pulley its a great library.

But i am facing some issue like if my drawer view is opened fully and i am going to other screen and coming back the drawer view is taking some top space.How i can avoid that. state is open

triztian commented 3 years ago

You can use the .partiallyRevealed state instead of .open to control the height:

extension MyDrawerViewController: PulleyDrawerViewControllerDelegate {
    func partialRevealDrawerHeight(bottomSafeArea: CGFloat) -> CGFloat {
        99.0 // define your custom height here
    }
}