-
Notifications
You must be signed in to change notification settings - Fork 338
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
The StackComponent has an optional shadow #4429
Conversation
// Without compositingGroup(), the shadow is applied to the stack's children as well. | ||
view.compositingGroup().shadow(shadow: shadow) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for not adding compositingGroup()
directly to the new shadow()
modifier is that I wanted the latter to behave the same as the built-in one to avoid confusion. Let me know if you disagree!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about compositingGroup()
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, actually 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks so good 😍
// Without compositingGroup(), the shadow is applied to the stack's children as well. | ||
view.compositingGroup().shadow(shadow: shadow) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL about compositingGroup()
😅
As the title says. I was initially going to build this just for the sticky footer, but I noticed on Figma that any stack can have a shadow, hence this PR.
Applied to the sticky footer, it looks like this: