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

dimsBackground is false,but PKHUD.sharedHUD not hidden container.backgroundView #281

Open
xdkhan opened this issue Feb 26, 2021 · 0 comments

Comments

@xdkhan
Copy link

xdkhan commented Feb 26, 2021

if last show container.backgroundView, and hide animated is false, container.backgroundView not hidden.

then dimsBackground set false, container.backgroundView hidden status not change true

open func show(onView view: UIView? = nil) {
        let view: UIView = view ?? viewToPresentOn ?? UIApplication.shared.keyWindow!
        if  !view.subviews.contains(container) {
            view.addSubview(container)
            container.frame.origin = CGPoint.zero
            container.frame.size = view.frame.size
            container.autoresizingMask = [ .flexibleHeight, .flexibleWidth ]
            container.isHidden = true
        }
        if dimsBackground {
            container.showBackground(animated: true)
        }
// dimsBackground == false, this not call  container.hideBackground(animated: false)
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

1 participant