-
Notifications
You must be signed in to change notification settings - Fork 265
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
How to change background color of drawerContentVC #382
Comments
The background dimming settings don’t control the drawer. That controls the color of the background that “dims” the primary content VC when the drawer is open all the way. If you want to remove the blur, set this to nil on PulleyViewController: drawerBackgroundVisualEffectView You need to provide a background color in your drawer VC. Pulley won’t provide a background color for you. |
I have set the above things but still i am getting the blur color for drawer can we remove that background color of it? |
Please read my previous comment. It says what you were setting is wrong, and the correct way to remove the blur. |
Yes according to previous comment i have removed and updated my code let mainContentVC = UIStoryboard(name: StoryBoardIdentifiers.mapview_storyboard, bundle: nil).instantiateViewController(withIdentifier: "CreateRideHomeViewController") as! CreateRideHomeViewController
pulleyDrawerVC.drawerBackgroundVisualEffectView = nil And still i am getting the same blur background color. |
You need to set it after the view controller’s viewDidLoad has been called, since that’s where the built-in visual effect view is created and added. You can force the view to load if you call loadViewIfNeeded(). Do that before you set it to nil. |
still it does not work for me |
Yes, I’ve tried this. It’s an officially supported API and has a comment in the file telling you how to do this. I don’t have a demo I can share. |
Did anyone get the answer on how to disable this blur effect? |
pulleyDrawerVC.backgroundDimmingColor = .clear
pulleyDrawerVC.backgroundDimmingOpacity = 1.0
after setting this also background color is still setting some blur color
The text was updated successfully, but these errors were encountered: