Pulley icon indicating copy to clipboard operation
Pulley copied to clipboard

Fix Drawer Height

Open AnkurLahiry opened this issue 5 years ago • 4 comments

I am facing an issue and haven't found any solution yet. The drawer height should be the half of the total screen size. How I can achieve this?

AnkurLahiry avatar Jun 26 '19 08:06 AnkurLahiry

You can return self.view.bounds.size.height / 2.0 as the height for whatever position you want. If the view size changes, you need to notify Pulley with setNeedsDrawerPositionsUpdate so it can refresh the value.

amyleecodes avatar Jun 26 '19 17:06 amyleecodes

Would you please specify from where I can set this height. Sorry, I am working on this for the first time and it is difficult for me to detect. Thanks.

AnkurLahiry avatar Jun 29 '19 05:06 AnkurLahiry

There are delegate methods for you to implement. Please see the sample project + README for details and examples.

amyleecodes avatar Jun 29 '19 19:06 amyleecodes

@AnkurLahiry did you find any solution?

bhaveshbc avatar Jul 28 '20 11:07 bhaveshbc