FAPanels
FAPanels copied to clipboard
Close left panel issue
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?
@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
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
I got the issue you are facing. There are two ways to hide the left panel.
- Change the center panel animated
-
slideLeftPanelOut
in theFAPanel+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