FAPanels icon indicating copy to clipboard operation
FAPanels copied to clipboard

Close left panel issue

Open dfaizmaulana opened this issue 5 years ago • 3 comments

Hi thanks for this nice library, its really helpful for n00b like me.

I try to close left panel from left panel view controller by using panel?.closeLeft() What i expect is left panel will be closed with animation slide out, but what i get is only left panel closed without any slide out animation. Is there any configuration that i do incorrectly? screen shot 2018-10-09 at 17 18 32

dfaizmaulana avatar Oct 09 '18 10:10 dfaizmaulana

@dfaizmaulana

You need to call openCentre function. Let me know if it works otherwise I will share some code example with you.

Thanks & regards

fahidattique55 avatar Oct 09 '18 10:10 fahidattique55

@fahidattique55

I tried to call panel?.openCenter(animated: true) as well, but still no animation happen. I'm just wondering if panel?.closeLeft() should be call from center panel rather than on left panel, because when i try to call panel?.openLeft(animated: true) from center panel the animation is work.

dfaizmaulana avatar Oct 10 '18 02:10 dfaizmaulana

@dfaizmaulana

I got the issue you are facing. There are two ways to hide the left panel.

  1. Change the center panel animated
  2. slideLeftPanelOut in the FAPanel+Animation.swift file

The second way is a function but internal for now. So I will push a new update to give the option you want. Otherwise if you will tap on centre panel the left panel will get close with animation. Or if you will change the center panel, the left panel will also get close with animation.

Thanks

fahidattique55 avatar Oct 12 '18 02:10 fahidattique55