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

SFSafariViewController preferredStatusBarStyle #61

Open
fawzialrifai opened this issue Apr 14, 2019 · 5 comments
Open

SFSafariViewController preferredStatusBarStyle #61

fawzialrifai opened this issue Apr 14, 2019 · 5 comments
Labels
help wanted Extra attention is needed minor bug Not critical bug

Comments

@fawzialrifai
Copy link

Hello Ivan. How can I change preferredStatusBarStyle to .lightContent on SFSafariViewController?

Simulator Screen Shot - iPhone 7 - 2019-04-14 at 15 06 37

@ivanvorobei
Copy link
Owner

Good day! You read in readme about capture state?

@fawzialrifai
Copy link
Author

Sure, I would not ask without read it first. I set preferredStatusBarStyle property and modalPresentationCapturesStatusBarAppearance but that did not work.

@ivanvorobei
Copy link
Owner

Please, create simple project and send link here. I am tested it.

@fawzialrifai
Copy link
Author

@ivanvorobei
Copy link
Owner

I am create subclass:

class MyCustomSafariViewController: SFSafariViewController {
    
    override var preferredStatusBarStyle: UIStatusBarStyle {
        return .lightContent
    }
    
    override var prefersStatusBarHidden: Bool {
        return false
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.setNeedsStatusBarAppearanceUpdate()
    }
}

but it not work. I am tested different way, but for now no result. If I am found how do it, I am write here.

Thanks for your issue.

@ivanvorobei ivanvorobei added help wanted Extra attention is needed minor bug Not critical bug labels May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed minor bug Not critical bug
Projects
None yet
Development

No branches or pull requests

2 participants