Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] How to set drop shadow on center controller? #48

Open
Sergozh opened this issue Nov 7, 2018 · 11 comments
Open

[Help] How to set drop shadow on center controller? #48

Sergozh opened this issue Nov 7, 2018 · 11 comments
Assignees

Comments

@Sergozh
Copy link

Sergozh commented Nov 7, 2018

Please give an advice how to set drop shadow on center controller when it appears above left panel.
Thank you!

@fahidattique55
Copy link
Owner

Can you share more details what you actually looking for? Shadow for left panel is already there.

@fahidattique55
Copy link
Owner

You can use showDarkOverlayUnderLeftPanelOnTop and showDarkOverlayUnderRightPanelOnTop.

@Sergozh
Copy link
Author

Sergozh commented Nov 7, 2018

I'm trying to achieve something like this. When center panel higher than left.
img_4872

@Sergozh
Copy link
Author

Sergozh commented Nov 7, 2018

And how I can reload center panel ViewController when left is opened without closing it?

@fahidattique55
Copy link
Owner

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.

@fahidattique55
Copy link
Owner

And how I can reload center panel ViewController when left is opened without closing it?

Reload means ?

@Sergozh
Copy link
Author

Sergozh commented Nov 7, 2018

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?

@fahidattique55
Copy link
Owner

You can do it using NSNotificationCenter.

@Sergozh
Copy link
Author

Sergozh commented Nov 7, 2018

Done already. Thanks. Just looked for another options.

@Hems3112
Copy link

Hems3112 commented Nov 21, 2018

@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.
screenshot 2018-11-21 at 10 17 22 am

    panel!.configs = FAPanelConfigurations()
    panel!.configs.rightPanelWidth = 80
    panel!.configs.bounceOnRightPanelOpen = false
    panel!.navigationController?.setNavigationBarHidden(true, animated: false)
    panel!.delegate = self

screenshot 2018-11-21 at 10 14 24 am

@fahidattique55
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants