SebastienMichoy/MSSlidingPanelController

Add Shadow

Closed this issue · 1 comments

How can I add shadow to left panel controller so that it looks different from centre view controller?

Hi @Ashleyjwsi,

This is an option I didn't implement, so you have to add it by yourself. The best way to do this is to add your shadow when the delegate is called slidingPanelController:beginsToBringOutSide: and to remove it when slidingPanelController:hasClosedSide: is called.

If you need more information about the different options you have about the shadow generation, I advise you to watch the video made by Google: https://youtu.be/vvGVsmWdjyw.

If you're satisfied of your work, don't hesitate to share it via a pull request. 😉

Sébastien