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

How to apply "modalPresentationStyle = .popover"? #21

Closed
yeonpark333 opened this issue Feb 15, 2020 · 2 comments
Closed

How to apply "modalPresentationStyle = .popover"? #21

yeonpark333 opened this issue Feb 15, 2020 · 2 comments

Comments

@yeonpark333
Copy link

Hi,
I want to make the background screen dark like modalpresentationstype = .popover.
How can i do it?

@antoniocasero
Copy link
Owner

Hi @yeonpark333 , sorry, but the dark background is not implemented.

@hytaoist
Copy link

Hi,
I want to make the background screen dark like modalpresentationstype = .popover.
How can i do it?

you can add a BackgroundView in Panels's ParentViewController before it show. If you do like this, you should remove the BackgroundView when you dismiss Panels.
I do like this, it work fine.

// show addBackground(backgroundColor: UIColor.colorWithHex(hex: "000000", alpha: 0.6)) panelManager.show(panel: panelVC, config: config, view: nil)

// dismiss panel?.dismiss() DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.4) { viewer.removeBackground() }

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

No branches or pull requests

3 participants