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

Status bar bug? #48

Closed
pigeon-archive opened this issue Oct 14, 2015 · 7 comments
Closed

Status bar bug? #48

pigeon-archive opened this issue Oct 14, 2015 · 7 comments
Labels

Comments

@pigeon-archive
Copy link

Hey!

I'm using PKHUD to present a brief dialog to inform them of a feature, but for some reason when PKHUD displays the hud, the status bar changes from .LightContent to .Default. Anyway to correct this so it stays white?

My current code:

PKHUD.sharedHUD.contentView = PKHUDTextView(text: "Text")
PKHUD.sharedHUD.dimsBackground = false
PKHUD.sharedHUD.show()
PKHUD.sharedHUD.hide(afterDelay: 2.0)

I would appreciate any help!

@pkluz
Copy link
Owner

pkluz commented Oct 14, 2015

looking into it

@pigeon-archive
Copy link
Author

Any luck?

@pkluz
Copy link
Owner

pkluz commented Jan 5, 2016

Confirmed. There's certain scenarios - specifically it seems when the rootViewController is swapped at any point, that cause this bug to occur.

@hebertialmeida
Copy link
Contributor

Same for me.

This is happening because PKHUD uses rootViewController StatusBar, so if you are not in Root and your VC has a different statusBar it will uses from root, not previous VC.

hebertialmeida added a commit to hebertialmeida/PKHUD that referenced this issue Apr 20, 2016
pkluz pushed a commit that referenced this issue Jul 3, 2016
@pkluz
Copy link
Owner

pkluz commented Jul 3, 2016

Quite possible resolved now

@pkluz pkluz closed this as completed Jul 3, 2016
@pkluz pkluz removed the help wanted label Jul 3, 2016
@fitch
Copy link

fitch commented Aug 31, 2016

I'm still experiencing this with PKHUD (3.2.1).

@Laptopmini
Copy link

This is still a bug in PKHUD (4.0)

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

No branches or pull requests

5 participants