-
-
Notifications
You must be signed in to change notification settings - Fork 112
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 support #324
Comments
@foscomputerservices did you stumble upon a need for shadows support by any chance? Maybe you could give an example which you'd like to see support first if so? I personally am perfectly fine with supporting a limited subset at first. Just a simple |
What if you stick the shadow properties in the environment, then when a view that supports shadows (such as |
I like the environment suggestion, but I think I'm going to start with a PR that only handles box-shadow as Max suggested. Additionally, I've been trying to figure out how the shadow values map from SwiftUI (radius) to CSS (blur radius + spread radius). I'm going to start with using only blur radius even though it doesn't match the SwiftUI behavior (especially for very high values and when there's an offset). Here's some of the mapping's I've found by manually changing css values (and using color meter to test that colors match). Maybe someone can use this to find a pattern.
|
Thank you for asking! No. We do not use shadows at this time. |
* Add support for shadow modifier Closes #324 * Convert radius to match iOS shadows closer * Use correct environment values * Include shadow demo in XCode project
Do we need separate issues for more complex cases, or should I reopen this one? |
The text was updated successfully, but these errors were encountered: