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

blur background VC or otherwise help popOver be more apparent? #19

Open
wdcurry opened this issue Jan 29, 2019 · 3 comments
Open

blur background VC or otherwise help popOver be more apparent? #19

wdcurry opened this issue Jan 29, 2019 · 3 comments

Comments

@wdcurry
Copy link

wdcurry commented Jan 29, 2019

As per the subject line, a bit of isolation might help the popOver stand out more.

@wdcurry
Copy link
Author

wdcurry commented Jan 29, 2019

Currently it is easy to manage as i always use SwifterSwift and adjust the FadeOut view method to animate alpha to 0.5 on presentation and FadeIn on dismissal.

@cozzin
Copy link
Contributor

cozzin commented Jan 29, 2019

@wdcurry
Hi, I think you want to change the alpha of view under popOver.
I hope this can help you.

class CustomPopOverViewController: UIViewController, KUIPopOverUsable {    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        presentingViewController?.view.alpha = 0.5
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        presentingViewController?.view.alpha = 1
    }
}

@Kofktu
Copy link
Owner

Kofktu commented Jan 30, 2019

@cozzin
I'll check it out and support it.

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