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

ColorScheme not working #43

Open
Dave181295 opened this issue Aug 3, 2023 · 1 comment
Open

ColorScheme not working #43

Dave181295 opened this issue Aug 3, 2023 · 1 comment

Comments

@Dave181295
Copy link

Dave181295 commented Aug 3, 2023

Thanks for the lib, when passing color scheme (light/dark mode)

 .preferredBarAccentColor(Color.BackgroundColor)
  .preferredControlAccentColor(Color.TintColor)

The safariView colors wont update even when doing a new fresh launch

@phoqe
Copy link

phoqe commented Aug 19, 2023

Had to do this:

static func safariView(for url: URL) -> SafariView {
    return SafariView(
        url: url,
        configuration: SafariView.Configuration(
            entersReaderIfAvailable: true,
            barCollapsingEnabled: true
        )
    )
    .preferredControlTintColor(UIColor(named: "AccentColor"))
}

Also, look here: #16

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

2 participants