fahidattique55 / FAPanels

FAPanels - Swift
Apache License 2.0
851 stars 90 forks source link

Panel Delegates responses are slow #12

Closed djaygit closed 7 years ago

djaygit commented 7 years ago

Not sure if it's only me

Delegate methods are running called for the first few times.

and

let panel = FAPanelController() doesn't work, have to use (coder: ..)

fahidattique55 commented 7 years ago

Hi djaygit,

I didn't get your point about delegate. Can you please explain it ?

FAPanelControll is a subclass of UIViewController. The init() is not a designated initialiser. That is why you can not make its object like FAPanelController(). You can use it with coder or nib. I prefer using it with storyboards. That is the most simplest way of integrating it.

fahidattique55 commented 7 years ago

It would be good if you can also tell me the reason you are using the FAPanelController() ?

djaygit commented 7 years ago

The delegate methods FAPanelStateDelegate

 func leftPanelWillBecomeActive() 
 func centerPanelWillBecomeActive()

are not called instantly, let me explain when the app starts, if i open side panel, then leftPanelWillBecomeActive gives no response neither centerPanelWillBecomeActive.

But after few tries they start responding

get it?

fahidattique55 commented 7 years ago

Hi djaygit,

I have tested the delegates and its responding me to specified functions every time. Can you please verify the delegate is not nil while you are expecting the delegate methods to be called?

Please let me know if you face the issue again.

Thanks & Regards