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

Background color is not changed. #7

Closed
mertnesvat opened this issue Dec 13, 2018 · 5 comments
Closed

Background color is not changed. #7

mertnesvat opened this issue Dec 13, 2018 · 5 comments
Labels

Comments

@mertnesvat
Copy link

In the example project, I've tried to change background color from apperance but it doesn't work out.

    let statusAlert = StatusAlert()
    statusAlert.appearance.backgroundColor = .red

It's withImage, title and message.

@LowKostKustomz
Copy link
Owner

As you can see in the doc for this property, it is used when blur cannot be used. There is no ability to change background color when blur should be used.

/// Used if device does not support blur or if `Reduce Transparency` toggle
/// in `General->Accessibility->Increase Contrast` is on
///
/// - Note: Do not change to save system look
@objc public var backgroundColor: UIColor = UIColor.groupTableViewBackground

@mertnesvat
Copy link
Author

Yes, I tried with reduce transparency is it because of the simulator. I'm not sure 🤔

@LowKostKustomz
Copy link
Owner

Yep, it is bug, thank you! Will fix it as fast as possible and notify you. Stay tuned!

@mertnesvat
Copy link
Author

Thanks 🙂, actually, maybe instead of changing the background color I need to change blurStyle to the extra light because my friends feedback was the pop up is not readable enough.

So maybe I would have a feature request that adding blur style to the apperance properties.

@LowKostKustomz
Copy link
Owner

The issue was fixed in version 1.1.0.

You can also change blur style in appearance.

There are some source-breaking changes, but it is not too hard to fix them: just rebuild your project, go to Editor -> Fix All Issues and here you go.

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

2 participants