[Help] How to set drop shadow on center controller?
Sergozh opened this issue · 11 comments
Please give an advice how to set drop shadow on center controller when it appears above left panel.
Thank you!
Can you share more details what you actually looking for? Shadow for left panel is already there.
You can use showDarkOverlayUnderLeftPanelOnTop
and showDarkOverlayUnderRightPanelOnTop
.
And how I can reload center panel ViewController
when left is opened without closing it?
I think the shadow is not there for this scenario. If you can implement this feature and make a merge request then it will be appreciated as I don't get enough time to add new features in this library but i will add a lot of features in it.
And how I can reload center panel
ViewController
when left is opened without closing it?
Reload means ?
For example some data changes from left panel needs to reload center panel so if I call panel?.center(myNewCenterController)
it reloads with animation and left panel closes. The question is how to change center panel without closing left panel?
You can do it using NSNotificationCenter.
Done already. Thanks. Just looked for another options.
@Sergozh and @fahidattique55 can you guide me how can you set your custom view in center view?
I changed code in centervc.swift and also hide navigation bar from navigation controller. but still i get navigationbar on top.
panel!.configs = FAPanelConfigurations()
panel!.configs.rightPanelWidth = 80
panel!.configs.bounceOnRightPanelOpen = false
panel!.navigationController?.setNavigationBarHidden(true, animated: false)
panel!.delegate = self
This line panel!.navigationController?.setNavigationBarHidden(true, animated: false)
is not correct.
As the Panel is just a container of all your centre, left and right controllers. So you need to hide navigation bar of centre controller and not the panel controller.
try using this, navigationController?.setNavigationBarHidden(true, animated: false)
in view will appear of your centre controller.