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

Shadow in iOS 13 Dark Mode #132

Open
sicaboy opened this issue Oct 5, 2019 · 1 comment
Open

Shadow in iOS 13 Dark Mode #132

sicaboy opened this issue Oct 5, 2019 · 1 comment

Comments

@sicaboy
Copy link

sicaboy commented Oct 5, 2019

Because the default background of UIView is black, which makes the shadow invisible.

@sicaboy
Copy link
Author

sicaboy commented Oct 5, 2019

A very quick fix is to create a named color then set option as follows:

let options = [
  .blackOverlayColor(UIColor(named: "the_color_name_with_opacity")),
...

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